Hi --

On Thu, 8 Nov 2007, joey eisma wrote:

> hi!
>
> reading through some tutorial, i noticed the author would interchange using :: and . to call methods. i see they both give the same result.
>
> i was wondering if there is any other difference between the two? (other than convenience maybe?). when would you use one over the other?

I never use :: to call methods. Some people use it to call class
methods, but I've never seen any reason to switch operators just
because the receiver is a class or module.


David

-- 
Upcoming training by David A. Black/Ruby Power and Light, LLC:
   * Advancing With Rails, Edison, NJ, November 6-9
   * Advancing With Rails, Berlin, Germany, November 19-22
   * Intro to Rails, London, UK, December 3-6 (by Skills Matter)
See http://www.rubypal.com for details!