Created
June 4, 2012 12:31
-
-
Save mttkay/2868077 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Base | |
def m | |
puts "Base::m" | |
end | |
end | |
module MixinA | |
def m | |
puts "MixinA::m" | |
end | |
end | |
module MixinB | |
def m | |
puts "MixinB::m" | |
end | |
end | |
class Sub < Base | |
include MixinA, MixinB | |
def m | |
super | |
puts "Sub::m" | |
end | |
end | |
Sub.new.m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment