From: Ken Bloom Date: 2006-10-10T10:35:13+09:00 Subject: Re: "def self.method" vs "class << self; def method" joevandyk@gmail.com wrote: > What's the difference between > > class Foo > class << self > def foo; end > end > end > > and > > class Foo > def self.foo; end > end AFAIK nothing. But you can't do the second one with most metaprogrammed methods, for example attr_accessor. --Ken -- Ken Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/ I've added a signing subkey to my GPG key. Please update your keyring.