Ruby Q? Which style:
def self.method
or
class << self
def method
#ruby #rubyonrails
-
-
@bascule@leshill@jremsikjr Or even all three: digging "extend self" there. :) Why decide? -
@judsonlester@leshill@jremsikjr yeah, the instance methods in the module are just shortcuts to the singleton methods in that case
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.