Skip to content

Instantly share code, notes, and snippets.

@fronx
Created March 19, 2012 19:51
Show Gist options
  • Select an option

  • Save fronx/2125859 to your computer and use it in GitHub Desktop.

Select an option

Save fronx/2125859 to your computer and use it in GitHub Desktop.
module A
module B
extend self
def b
"b0"
end
end
module X
extend self
def x
B.b + B.b
end
end
end
module C
include A
module B
extend self
def b
"b1"
end
end
end
C::X.x # => "b0b0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment