Created
August 30, 2009 11:27
-
-
Save roidrage/177930 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 M1 | |
def self.included(base) | |
base.class_eval do | |
def self.hello | |
p 'hello' | |
end | |
end | |
end | |
end | |
module M2 | |
def self.included(base) | |
base.hello | |
end | |
end | |
module M2 | |
end | |
class A | |
include M2, M1 # knallt | |
include M1 # knallt nicht | |
include M2 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment