[Ironruby-core] How to fire IronRuby Method from C#

Mohammad Azam lists at ruby-forum.com
Tue Jun 9 16:57:33 EDT 2009


Is there any special way for calling the ExecuteFile method:

engine.ExecuteFile("hello.rb",engine.CreateScope());

And here is the hello.rb file:

class Person
            def greet()
            puts 'hello world'
            end

            end

            def getPerson()

            return Person.new

            end

            getPerson()

-- 
Posted via http://www.ruby-forum.com/.


More information about the Ironruby-core mailing list