Created
June 6, 2018 15:15
-
-
Save jjuliano/5b04eeaaa5b8af7ee5afeb4bce5b43c1 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
module Coffee | |
def types | |
[ | |
"espresso", | |
"cappuccino", | |
"macchiato" | |
] | |
end | |
end | |
class Drink | |
include Coffee | |
def menu | |
puts types | |
end | |
end | |
drink = Drink.new | |
drink.menu | |
# espresso | |
# cappuccino | |
# macchiato |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment