I am trying to access top level method from the class definition in
IronRuby scripts. Example:
The script executed in ScriptEngine throws a NoSuchMethodError.
I tried to ran the same code in iirb.exe It seems to behave the way I
expected. But when I tried it in ir.exe, it throws the exception as
I investigate a little more and found out
=> #<Method: Object#global_hi>
in ir.exe as well as script engine
=> #<Method: Object(#<Class:#Object:0x0000058>)#xx>
Is there anyway to make the script behave like the one in iirb.exe?