Skip to content

Instantly share code, notes, and snippets.

@jrochkind
Created April 14, 2011 20:29
Show Gist options
  • Save jrochkind/920443 to your computer and use it in GitHub Desktop.
Save jrochkind/920443 to your computer and use it in GitHub Desktop.
module Foo
def print_something
"foo"
end
end
module Bar
include Foo
def call_print_something
print_something
end
end
class Thing
include Bar
def print_something
"Thing!"
end
end
puts Thing.new.call_print_something
# prints "Thing!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment