On Fri, Nov 13, 2009 at 1:06 PM, Shay Friedman <shay.fried...@gmail.com>wrote:

> I guess you can do that in two ways.
>
> The first one is to add a statement in Ruby code:
>
> class Object
>   def mymethod(str)
>     MyCSharpClass.mymethod(str)
>   end
> end
>
>
Maybe I'm missing something, but shouldn't that be:

  def mymethod(str)
    MyCSharpClass*::*mymethod(str)   # Use '::' instead of '.'?
  end

Ryan Riley

Email: ryan.ri...@panesofglass.org
LinkedIn: http://www.linkedin.com/in/ryanriley
Blog: http://wizardsofsmart.net/
Website: http://panesofglass.org/
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to