Last active
August 11, 2017 10:09
-
-
Save asvetly/65fd7d965b9de7cfee550ea78be51f89 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 Dog < Animal | |
def talk | |
['bork', 'gav', 'rgrhrghrgr', 'woof'] | |
end | |
end | |
def animal_info(animal) | |
"This is #{animal.class.name} and it says #{animal.talk.upcase}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment