Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
klochner
on April 2, 2014
|
parent
|
context
|
favorite
| on:
Why Ruby Class Methods Resist Refactoring
Totally agree, that's why I said 'if all methods are class methods...', in which case
class<<self
should go at the top of the class body. If there are instance methods I prefer
def self.bar
.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: