[Ironruby-core] Lowercase classname

Tomas Matousek Tomas.Matousek at microsoft.com
Thu Nov 18 18:32:25 EST 2010


This might be a bug in the documentation :-)? Method names are mangled so that you can use foo_bar  to call FooBar method.

You should be able to use const_get(:foo) to get to the constant.

Tomas

-----Original Message-----
From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tinco Andringa
Sent: Thursday, November 18, 2010 3:01 PM
To: ironruby-core at rubyforge.org
Subject: Re: [Ironruby-core] Lowercase classname

Hmm I've found the documentation for IronRuby now :P It says class names should automatically be capitalized. This however seems not to have happened since it plainly isn't available. I have worked around the issue by renaming it in the source, but this forces me to ship precompiled dll's instead of referencing the other framework.

Should I file a bugreport? This is on the 1.1.1 release :)

Cheers,
Tinco

On Thu, Nov 18, 2010 at 15:17, Tinco Andringa <mail at tinco.nl> wrote:
> Hey guys,
>
> I'm using IronRuby to interface with a clr library. There is a small 
> problem however: It has one class that does not start with a capital 
> letter. This causes IronRuby to just not see the class since ruby does 
> not support lowercase constantnames. Does anyone know if it's possible 
> to work around this in IronRuby (like somehow getting a reference to 
> it with a string, and then assigning it to different ruby constant)?
> Or should I make my own clr dll that exposes the class with a 
> different (uppercased) name?
>
> Cheers,
> Tinco Andringa (simkor.nl)
>
_______________________________________________
Ironruby-core mailing list
Ironruby-core at rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core



More information about the Ironruby-core mailing list