[rspec-users] class << self considered harmful... really?
Wes Gamble
weyus at att.net
Tue Nov 25 13:27:35 EST 2008
Scott Taylor wrote
>>
>> I'd be interested, however, in hearing about the benefits of opening
>> the eigenclass to define class methods (apart from ease in searching,
>> which may be best handled with ctags).
>
> Grouping and private methods.
Potentially dumb question:
As far as private class methods, could you do
private
def self.blah
...
end
to get private class methods, or does private not work on class methods
in this way?
Wes
More information about the rspec-users
mailing list