[rspec-users] class << self considered harmful... really?
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. :)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users