[Ironruby-core] Accessing a Module's Classes from C# with dynamic

Rob R. lists at ruby-forum.com
Thu Feb 24 09:41:28 EST 2011


to add directories to your search path from within C# you can do 
something like this:


var engine  = Ruby.CreateEngine();
var searchPaths = engine.GetSearchPaths().ToList();
searchPaths.Add(@"c:\code\generator\lib");
searchPaths.Add(@"C:\Ruby-ri-192\lib\ruby\1.9.1");
engine.SetSearchPaths(searchPaths);

Let me know if you find out how to access classes that are within 
modules from C#.  I'm having no luck.

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


More information about the Ironruby-core mailing list