[rspec-users] class << self considered harmful... really?

Mark Wilden mark at mwilden.com
Tue Dec 2 17:31:08 EST 2008


Here's what The Ruby Programming Language says about this:

"In general, it is clearer to define class methods as individual singleton
methods without explicitly opening the eigenclass" (p. 258)

This is far from a blanket condemnation, and, as with the rest of the book,
it's not obvious whether it's Matz or (non-Rubyist) Flanagan who's talking.

I don't mean to "open" the discussion again. :)

///ark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081202/6ac089de/attachment.html>


More information about the rspec-users mailing list