mortee
11/7/2007 5:55:00 PM
mortee wrote:
> It's described somewhere in the pickaxe book. IIRC when you access a
> member of a module using ::, without trailing parentheses, then it's
> considered accessing a constant. All other cases are method calls.
Ah yes, after seeing the other posts in this thread, I have to add that
it only applies if the name after the :: starts with a capital letter.
Of course you can't have constants starting with lowercase letters, so
MyModule::some_member
is also a method call.
mortee