Skip to content

Instantly share code, notes, and snippets.

@hsbt
Created March 22, 2016 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hsbt/8c81285cb3e6d1ea59cb to your computer and use it in GitHub Desktop.
Save hsbt/8c81285cb3e6d1ea59cb to your computer and use it in GitHub Desktop.
module A
def foo
puts :x
end
end
class B
include A
end
B.new.foo # => x
module A
def foo
puts :y
end
end
B.new.foo # => y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment