Skip to content

Instantly share code, notes, and snippets.

@rickhull
Last active December 2, 2017 01:58
Show Gist options
  • Save rickhull/116cec58b9eba386e4f4e4405e93ef6a to your computer and use it in GitHub Desktop.
Save rickhull/116cec58b9eba386e4f4e4405e93ef6a to your computer and use it in GitHub Desktop.
# normal nesting
module Outer
X = 1
Y = 2
class C
X = Y
end
end
# alternative nesting
class Outer::D
X = Y
end
# Fail, can't find Y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment