Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
module madness
module Foo
def baz
"I am from foo!"
end
end
module Bar
def baz
"I am from bar!"
end
end
class FooBar
include Foo
include Bar
end
class BarFoo
include Bar
include Foo
end
raise "uh-oh" unless FooBar.new.baz == "I am from bar!"
raise "uh-oh" unless BarFoo.new.baz == "I am from foo!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.