Created
March 22, 2016 12:06
-
-
Save hsbt/8c81285cb3e6d1ea59cb 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 foo | |
puts :x | |
end | |
end | |
class B | |
include A | |
end | |
B.new.foo # => x | |
module A | |
def foo | |
puts :y | |
end | |
end | |
B.new.foo # => y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment