Skip to content

Instantly share code, notes, and snippets.

@alg alg/a.rb
Last active Aug 29, 2015

Embed
What would you like to do?
module M
def m
puts "module"
end
end
class A
def m
puts "class"
end
include M
end
class B
include M
def m
puts "class"
end
end
A.new.m # => "class"
B.new.m # => "class"
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.