Hi --

On Mon, 13 Nov 2006, Alfonso wrote:

> Thank you very much for your answers. So if I have understood right:
>
> - "::" constants, and module methods
> - "." methods
>
> I also have read today in "ruby in a nutshell", that "::" is preferred also 
> with class methods (but the war wroten in 2001, so it could be a bit 
> outdated).

My recommendation is:

   "::" for constant paths
   "." for method calls

I don't think there's any reason to use :: for method calls just
because the receiver is a class or module.  It just adds an
unnecessary special case.


David

-- 
                   David A. Black | dblack / rubypal.com
Author of "Ruby for Rails"   [1] | Ruby/Rails training & consultancy [3]
DABlog (DAB's Weblog)        [2] | Co-director, Ruby Central, Inc.   [4]
[1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com
[2] http://dablog.rubypal.com    | [4] http://www.rubycentral.org