Skip to content

Instantly share code, notes, and snippets.

@cgunther
Created November 30, 2022 01:45
Show Gist options
  • Save cgunther/b49a590c3fab2746ad8b4721d07e7ad9 to your computer and use it in GitHub Desktop.
Save cgunther/b49a590c3fab2746ad8b4721d07e7ad9 to your computer and use it in GitHub Desktop.
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