From: Zhenning Guan Date: 2008-10-21T16:23:20+09:00 Subject: what's different between self.method and class << self? we can define a instance method in lots way. mostly, I saw people define like this: 1. class A def self.class_method #some code here.... end end 2. class A class << self def class_method #some code here.... end end end == the question confused me is what's the advantage of doing this in 2? they'are different? which is your choose? -- Posted via http://www.ruby-forum.com/.