Ruby Q? Which style:
def self.method
or
class << self
def method
#ruby #rubyonrails
@pjb3 @davetron5000 @leshill @jremsikjr @merbist know what's ugly? a mixed bag of singleton and instance methods ;)
-
-
@bascule@pjb3@leshill@jremsikjr@merbist understanding def self.blah requires 1 line to be read, understaningd def blah requires ∞ lines -
@davetron5000@pjb3@leshill@jremsikjr@merbist missing an instance method because it was grouped with self. singleton methods? Priceless -
@bascule@davetron5000@pjb3@leshill@jremsikjr missing? also, organizing class level and instance methods isn't a bad idea :p -
@merbist@davetron5000@pjb3@leshill@jremsikjr know what organizes code that way for you? class << self blocks -
@bascule@davetron5000@pjb3@leshill@jremsikjr I "missed" many more meths not knowing if they were class/instance because of << self block
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.