[Ironruby-core] How to use open-uri

Mohammad Azam lists at ruby-forum.com
Tue Jun 9 21:54:27 EDT 2009


Thanks for the reply!

Actually I am trying to run the open method using C#. Here is the code:

 dynamic rubyPerson =  (engine.Execute(@"
            require 'open-uri'

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

            end

            def getPerson()

            f = open('http://www.azamsharp.com/Default.aspx')

            end

            getPerson()
            "));

And here is the error:

no such file to load open-uri
-- 
Posted via http://www.ruby-forum.com/.


More information about the Ironruby-core mailing list