Skip to content

Instantly share code, notes, and snippets.

@mttkay
Created June 4, 2012 12:31
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 mttkay/2868077 to your computer and use it in GitHub Desktop.
Save mttkay/2868077 to your computer and use it in GitHub Desktop.
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