Christopher, My example is in C# using dynamic, but there must be a way to write an Indexer in Ruby that can interop properly. If all else failed, you could write a C# decorator that exposes the Ruby properties dynamically through a string Indexer.
Good luck! Let us know what you figure out :) B On Sep 28, 2010 5:31 PM, "Christopher Bennage" < christop...@bluespireconsulting.com> wrote: > Here's some interesting background about what's happened with IronPython: > http://devhawk.net/CategoryView,category,__clrtype__.aspx > I'm still reading through it all, but note in particular the post from April > 24, 2009: > http://devhawk.net/2009/04/20/Introducing+Clrtype+Metaclasses.aspx > > My guess is that concept of __clrtype__ never made it over into IronRuby.. > > Brian, regarding your string indexer idea. I assume that you mean to > implement the indexer on a C# class and then inherit from that in ruby? That > idea has some merit, I'll look into it.
_______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core