Created
July 3, 2011 20:18
-
-
Save hammerdr/1062573 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 First | |
def hello; "FIRST"; end | |
end | |
Speak.send :include, First |
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 Second | |
def hello; "SECOND"; end | |
end | |
Speak.send :include, Second |
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
class Speak | |
def hello_world | |
complicated_hello_world_with_message hello | |
end | |
... | |
end |
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
def test_one | |
Speak.new.hello_world # want module Second here but another_speak_test already included module First | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment