Created
March 21, 2012 15:23
-
-
Save mjtko/2148375 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 MyModule | |
def foo | |
puts 'new foo' | |
end | |
end | |
class MyClass | |
def foo | |
puts 'old foo' | |
end | |
include MyModule | |
end | |
MyClass.new.foo | |
=> 'old foo' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment