Couldn't you just execute the code in the resource (engine.Execute(resource string))? Or do you need to do that from the Ruby script you execute?
Tomas From: [email protected] [mailto:[email protected]] On Behalf Of mlkjih mlkjih Sent: Friday, August 21, 2009 7:29 AM To: [email protected] Subject: [Ironruby-core] How add require from string? var rubyCode = "require 'test' puts A.new" engine = Ruby.CreateRuntime().GetEngine("rb"); engine.Execute(rubyCode); Engine search the test.rb file. What if i have test.rb code in resources? Can I add it to engine from string instead of file?
_______________________________________________ Ironruby-core mailing list [email protected] http://rubyforge.org/mailman/listinfo/ironruby-core
