You may need to call ScriptEngine.SearchPaths to initialize the path.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Mohammad Azam
Sent: Tuesday, June 09, 2009 6:54 PM
To: [email protected]
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'
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/.
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core