[rspec-users] class << self considered harmful... really?
avdi at avdi.org
Tue Nov 25 12:59:41 EST 2008
On Tue, Nov 25, 2008 at 8:41 AM, Matt Wynne <matt at mattwynne.net> wrote:
> Sorry, I know this is off-topic, but I'd really like to know what the
> revered ruby-hackers who read this list think.
For the case of defining class methods I completely agree. It's
unnecessary and it makes classes harder to read, because you have to
scroll back just to determine whether you're looking at class or
instance methods. Just type "def self.foo()". It's not that hard.
Developer Blog: http://avdi.org/devblog/
More information about the rspec-users