Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class Foo
def self.do_something *args
new(args).do_something
end
def initialize *args
# set instance variables
@var1 = args[0]
# and so on
end
def do_something
# do something...
return self
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.