I have the following code, which used to work under IronRuby 0.9.1 and
earlier
class Object
def method_missing(sym, *args, &block)
if sym.to_s =~ /blah regex/
# do stuff
else
super # call through to underlying ruby method_missing
end
end
end
Under 0.9.1 this worked acr
This code used to work under IronRuby 0.9.1 and earlier
load_assembly "microsoft.office.word.interop"
word = Microsoft::Office::Interop::Word::ApplicationClass.new
metaclass = class << word; self; end
metaclass.send :define_method, "fizz" do |*args|
puts "hello"
end #BANG!
Under 0.9.2, this ha