Skip to content

Instantly share code, notes, and snippets.

@acook
Last active November 6, 2016 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acook/a04b7aa3de474024d15e627141d98c25 to your computer and use it in GitHub Desktop.
Save acook/a04b7aa3de474024d15e627141d98c25 to your computer and use it in GitHub Desktop.
class Potato
def initialize weight
@weight = weight
end
end
def self.Potato *weight
Potato.new weight.first || 1
end
p begin
Potato
end
p begin
Potato()
end
p begin
Potato 2
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment