Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
module A
def msg
'hello'
end
end
module B
def msg
'hi'
end
end
class Sample
include B
include A
end
a = Sample.new
puts a.msg # What gets printed? Depends on order of includes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment