Created
April 14, 2011 20:29
-
-
Save jrochkind/920443 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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