From: Zhenning Guan Date: 2008-10-21T21:26:34+09:00 Subject: Re: what's different between self.method and class << self? Patrick Doyle wrote: > On Tue, Oct 21, 2008 at 3:23 AM, Zhenning Guan > wrote: > >> class A >> they'are different? which is your choose? >> > I asked this same question just a couple of weeks ago. The answers I > was > given were: > > Method 2: > 1) Saves some typing > 2) Has a slightly different mechanism for looking up class constants, > which > 99.99% of the time won't be noticed. > > Other than that there are no differences between methods 1 & 2. > > --wpd what's the meaning of saves some typing???? can you give me a example? -- Posted via http://www.ruby-forum.com/.