Skip to content

Instantly share code, notes, and snippets.

@acook
Last active November 6, 2016 19:00
Show Gist options
  • 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