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
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
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
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