class TheExample def output "Hello World" end end
var operations = Engine.CreateOperations(); Engine.ExecuteFile(/path/to/example.rb); var instance = operations.CreateInstance(); var result = operations.InvokeMember(instance, "output"); --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Thu, Oct 1, 2009 at 2:58 PM, Eelco Henderichs <li...@ruby-forum.com>wrote: > Dear users, > > I have found how to invoke class methods and use its result in the C# > application. > > However I can't seem to find how to invoke methodes located outside of a > class. So I started wondering if this is at all possible. If it is, I > would like to know how. > > Thanks in advance > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core@rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core >
_______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core