Skip to content

Instantly share code, notes, and snippets.

@darrinholst
Created January 18, 2012 18:57
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 darrinholst/1634922 to your computer and use it in GitHub Desktop.
Save darrinholst/1634922 to your computer and use it in GitHub Desktop.
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