Skip to content

Instantly share code, notes, and snippets.

@iorionda
Created June 11, 2013 09:09
Show Gist options
  • Select an option

  • Save iorionda/5755507 to your computer and use it in GitHub Desktop.

Select an option

Save iorionda/5755507 to your computer and use it in GitHub Desktop.
module C
extend ActiveSupport::Concern
module ClassMethods
def c
"c"
end
end
end
module B
extend ActiveSupport::Concern
include C
module ClassMethods
def b
"b" + c
end
end
end
class A
include B
class << self
def a
p "a" + b
end
end
end
if __FILE__ == $0
A.a
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment