Skip to content

Instantly share code, notes, and snippets.

@hammerdr
Created July 3, 2011 20:18
Show Gist options
  • Save hammerdr/1062573 to your computer and use it in GitHub Desktop.
Save hammerdr/1062573 to your computer and use it in GitHub Desktop.
module First
def hello; "FIRST"; end
end
Speak.send :include, First
module Second
def hello; "SECOND"; end
end
Speak.send :include, Second
class Speak
def hello_world
complicated_hello_world_with_message hello
end
...
end
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