|
|
|
|
|
by ryanto
4454 days ago
|
|
The biggest problem with "class << self" syntax is that it is hard to read in classes that have more than a handful or so lines. At quick glance you might not be able to tell if "def xxx" is a class method or instance method. However, with "def self.xxx" it is more easily recognizable. Btw, I think its a small nitpick. Plenty of great code bases use "class << self". |
|