Re: [Ironruby-core] Using win32ole "connect" method on Ironruby

2011-02-25 Thread Timothy Barnes
It appears to be that the WIN32OLE.connect method cannot be fixed as long as the WIN32OLE is class in IronRuby. This is b/c the connect method substitutes for the new(initialize) method when called. I don't believe ruby allows you to create a class instance with out calling the new method. Th

[Ironruby-core] Linebreak issue with clr strings manipulated by Ruby code

2011-02-25 Thread Aldinei Sampaio
Hi, guys. Sorry if I am posting this in the wrong place, but I need some kind of direction here. I isolated my problem in the following UnitTest in Visual Basic: Public Sub LineBreakProblem() Const SCRIPT = "print System::String.Format('Line1{0}Line2', System::Environment.NewLine)" Dim

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

2011-02-25 Thread Shay Friedman
const_get doesn't work, but you can do globalConstants.MyModule.constants()[0] but then you get back an object which you can't initialize... Shay. On Fri, Feb 25, 2011 at 10:25 AM, Tomas Matousek < tomas.matou...@microsoft.com> wrote: > Wouldn’t this work? > > > > dynamic globalConstants = en

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

2011-02-25 Thread Tomas Matousek
Wouldn't this work? dynamic globalConstants = engine.Runtime.Globals globalConstants.MyModule.const_get('MyClass') assuming module MyModule class MyClass end end Haven't tried. Let me know if it works. Tomas From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyfor