I thought '.' was for instance and '::' for static members. I need to brush
up on my Ruby! :)


Ryan Riley

Email: ryan.ri...@panesofglass.org
LinkedIn: http://www.linkedin.com/in/ryanriley
Blog: http://wizardsofsmart.net/
Website: http://panesofglass.org/


On Tue, Nov 17, 2009 at 11:29 AM, Ivan Porto Carrero <i...@flanders.co.nz>wrote:

> both work :: but in practice you see . more often though (it should also be
> SomeClass::new if we're going down that route :))
>
> http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/82031?help-en
> http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/250948
> http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/250943
>
> ---
> Met vriendelijke groeten - Best regards - Salutations
> Ivan Porto Carrero
> Blog: http://flanders.co.nz
> Google Wave: portocarrero.i...@googlewave.com
> Twitter: http://twitter.com/casualjim
> Author of IronRuby in Action (http://manning.com/carrero)
>
>
>
> On Tue, Nov 17, 2009 at 4:29 PM, Ryan Riley 
> <ryan.ri...@panesofglass.org>wrote:
>
>> 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
>>
>>
>
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core@rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
>
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to