Skip to content

Instantly share code, notes, and snippets.

@dangjlin
Created June 22, 2015 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dangjlin/5d9cb8fce4ad75877990 to your computer and use it in GitHub Desktop.
Save dangjlin/5d9cb8fce4ad75877990 to your computer and use it in GitHub Desktop.
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