-
-
Save cgunther/b49a590c3fab2746ad8b4721d07e7ad9 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 | |
end | |
module B | |
def bar | |
'bar' | |
end | |
end | |
class Foo | |
include A | |
end | |
A.include(B) | |
puts Foo.new.bar | |
# undefined method `bar' for #<Foo:0x00007fc43e0d4940> (NoMethodError) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment