Created
January 18, 2012 18:57
-
-
Save darrinholst/1634922 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
module M1 | |
def fumullins | |
p "M1#fumullins" | |
end | |
end | |
module M2 | |
def fumullins | |
p "M2#fumullins" | |
super | |
end | |
end | |
module M3 | |
def fumullins | |
p "M3#fumullins" | |
super | |
end | |
end | |
class Template | |
include M1 | |
include M2 | |
include M3 | |
end | |
t = Template.new | |
t.fumullins | |
"M3#fumullins" | |
"M2#fumullins" | |
"M1#fumullins" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment