Skip to content

Instantly share code, notes, and snippets.

@meineerde
Created August 27, 2013 16:39
Show Gist options
  • Save meineerde/6355952 to your computer and use it in GitHub Desktop.
Save meineerde/6355952 to your computer and use it in GitHub Desktop.
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