Skip to content

Instantly share code, notes, and snippets.

@metaskills
Created August 29, 2010 01:11
Show Gist options
  • Save metaskills/555796 to your computer and use it in GitHub Desktop.
Save metaskills/555796 to your computer and use it in GitHub Desktop.
module Foo
def foo
'foo'
end
end
module FooWithBar
def foo
"bar #{super}"
end
end
module FooWithBatz
def foo
"batz #{super}"
end
end
class Base
include Foo
include FooWithBar
include FooWithBatz
end
o = Base.new
o.foo # => "batz bar foo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment