Re: [Ironruby-core] override method_missing()

2011-10-19 Thread Lewis L.
Thanks a lot. At least I won't be killing myself trying to figure out what I missed. FYI, I tested on version 1.1 and 1.1.3 and they seem to have the same issue. Since we are on the subject, I wonder if you can spare some of your time help me understand this: As far as I understand, the global

Re: [Ironruby-core] override method_missing()

2011-10-19 Thread Tomas Matousek
Might be a bug. -Original Message- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Lewis L. Sent: Wednesday, October 19, 2011 8:24 AM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] override method_missing() Hi, Is there a way

[Ironruby-core] override method_missing()

2011-10-19 Thread Lewis L.
Hi, Is there a way to override the method_missing method and keep the SetVariable lookup behavior from ScriptScope? For example, in C# aScriptScope.SetVariable("a", "some_value") in Ruby p a => "some_value" But if I do, class << self def method_missing(sym, *args, &block) case (sym) w