Skip to content

Instantly share code, notes, and snippets.

@jjuliano
Created June 6, 2018 15:15
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 jjuliano/5b04eeaaa5b8af7ee5afeb4bce5b43c1 to your computer and use it in GitHub Desktop.
Save jjuliano/5b04eeaaa5b8af7ee5afeb4bce5b43c1 to your computer and use it in GitHub Desktop.
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