Skip to content

Instantly share code, notes, and snippets.

@roidrage
Created August 30, 2009 11:27
Show Gist options
  • Save roidrage/177930 to your computer and use it in GitHub Desktop.
Save roidrage/177930 to your computer and use it in GitHub Desktop.
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