Skip to content

Instantly share code, notes, and snippets.

@rcoder
Created April 27, 2011 23:08
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 rcoder/945435 to your computer and use it in GitHub Desktop.
Save rcoder/945435 to your computer and use it in GitHub Desktop.
class A
def foo
"okay!"
end
module B
def foo
"not " + super
end
end
module C
def foo
"really " + super
end
end
end
class X < A
include B
include C
end
if __FILE__ == $0
puts X.new.foo # => prints 'really not okay'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment