[Ironruby-core] How to use open-uri

Curt Hagenlocher curth at microsoft.com
Tue Jun 9 22:17:12 EDT 2009

You may need to call ScriptEngine.SearchPaths to initialize the path.

-----Original Message-----
From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam
Sent: Tuesday, June 09, 2009 6:54 PM
To: ironruby-core at rubyforge.org
Subject: Re: [Ironruby-core] How to use open-uri

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'


            def getPerson()

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



And here is the error:

no such file to load open-uri
Posted via http://www.ruby-forum.com/.
Ironruby-core mailing list
Ironruby-core at rubyforge.org

More information about the Ironruby-core mailing list