[Ironruby-core] Passing a .NET object to the RubyEngine...
haacked at gmail.com
Fri Sep 28 02:46:08 EDT 2007
Hi All, I posted some code for calling IronRuby code I found in the mailing
list onto the wiki.
RubyEngine re = RubyEngine.CurrentEngine;
string script = "s = 'let us get started'" + Environment.NewLine
+ "i = s.length");
The only thing is, I don't know how to pass a .NET object to the context of
the RubyEngine so it can be called from within the script. I'd like to
update the example with that.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironruby-core