[Ironruby-core] Calling a C# static from IronRuby

Ryan Riley ryan.riley at panesofglass.org
Tue Nov 17 10:29:08 EST 2009


On Fri, Nov 13, 2009 at 1:06 PM, Shay Friedman <shay.friedman at 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.riley at panesofglass.org
LinkedIn: http://www.linkedin.com/in/ryanriley
Blog: http://wizardsofsmart.net/
Website: http://panesofglass.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20091117/c4b1d798/attachment.html>


More information about the Ironruby-core mailing list