Last active
November 6, 2016 19:00
-
-
Save acook/a04b7aa3de474024d15e627141d98c25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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