Created
June 22, 2015 06:40
-
-
Save dangjlin/5d9cb8fce4ad75877990 to your computer and use it in GitHub Desktop.
This file contains 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 M2 | |
extend ActiveSupport::Concern | |
included do | |
my_attr_reader :age | |
end | |
end | |
module M1 | |
extend ActiveSupport::Concern | |
include M2 | |
included do | |
my_attr_reader :name | |
end | |
end | |
class C | |
def self.my_attr_reader(*args); end | |
include M1 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment