In documentation, Foo#bar specifically indicates an instance method  
of Foo. Foo::bar specifically indicates a class method. The problem  
with the Foo.bar syntax is that it is ambiguous (in documentation),  
since it can refer to either a class method or an instance method.

- Jamis

On Oct 18, 2005, at 2:56 PM, guoxiaotian / gmail.com wrote:

> what's the purpose of Ruby's Foo#bar notation(what's wrong with
> Foo.bar)? does this mean class Foo's instance method bar or Foo's  
> class
> method bar, or both?
>
> ri command seems support both.
>
>
>