[Ironruby-core] IronRuby and XNA. Super and Generics

Mike Moore blowmage at gmail.com
Wed Nov 26 15:01:53 EST 2008

On Wed, Nov 26, 2008 at 12:04 PM, Tomas Matousek <
Tomas.Matousek at microsoft.com> wrote:

> I'm thinking of something like:
> myTexture = content.load of(Texture2D), "mytexture"
> I.e. we would add Kernel#of method that takes a list of classes/modules and
> returns a special object representing generic parameters that binder would
> use for selecting the right method.
> We are open for more ideas.

Couldn't you just send in the constant? What would the Kernel#of method do
for you?

myTexture = content.load Texture2D, "mytexture"

Or, could you use method_missing?

myTexture = content.load_Texture2D "mytexture"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20081126/e0b84e21/attachment.html>

More information about the Ironruby-core mailing list