Last active
August 29, 2015 14:22
-
-
Save billdueber/d64c731ba6cac4587a38 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 A | |
def hello | |
puts "Hello from A" | |
end | |
def goodbye | |
puts "Goodbye from A" | |
end | |
end | |
class B | |
include A | |
def hello | |
puts "Hello from B" | |
end | |
end | |
b = B.new | |
b.hello | |
b.goodbye | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment