>You need to include the Module if you want to
>access the class without qualifying it.
I have tried this but it doesn't work (RuntimeBinderException:
'Microsoft.Scripting.Hosting.ScriptScope' does not contain a definition
for 'Foo').
In my original post I had specified the fully qualified name.
It turns out that the problem is not accessing a module's class, but
accessing the contents of a module in a require'd file.
global.rb
require 'app'
app.rb
module RbScriptApp
class Foo
def Bar()
return (rand(100) + 1).to_s()
end
end
end
No matt
Hey guys.
I am currently experimenting with IronRuby as an extensibility solution
for my application. However, I have hit a roadblock. What I would like
to do is call Runtime.UseFile("script.rb"), then access a global module
in the script, and instantiate a specific class in that module.
Here i