Skip to content

Instantly share code, notes, and snippets.

@kakutani
Created August 15, 2011 12:31
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 kakutani/1146134 to your computer and use it in GitHub Desktop.
Save kakutani/1146134 to your computer and use it in GitHub Desktop.
nesting
module M
module Q
NESTING1 = Module.nesting
end
end
module M::Q
NESTING2 = Module.nesting
end
p M::Q::NESTING1 # => [M::Q, M]
p M::Q::NESTING2 # => [M::Q]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment