Created
August 27, 2013 16:39
-
-
Save meineerde/6355952 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Foo | |
def foo; end | |
end | |
module Bar | |
def bar; end | |
end | |
class Baz | |
include Foo | |
def baz; end | |
end | |
Foo.send(:include, Bar) | |
Baz.new.bar | |
# NoMethodError: undefined method `bar' for #<Baz:0x007ff1fb53c718> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment