From: Jeremy Tregunna Date: 2005-02-15T23:06:37+09:00 Subject: Re: Is this old style Ruby? On 15-Feb-05, at 8:54 AM, centrepins@gmail.com wrote: > In Why's guide, I see the line: > > File::open( ...etc. > > Up 'til now I've always written this as: > > File.open( ...etc. > > (ie. using a . rather than a ::). Am I right in thinking the :: for > accessing class methods is now old-style? Foo::bar is for accessing "bar" (be it a method or class or whatever) in the module "Foo". Foo.bar wants "bar" in class "Foo". -- J.