Skip to content

Instantly share code, notes, and snippets.

@rondale-sc
Created March 7, 2014 19:51
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 rondale-sc/9418607 to your computer and use it in GitHub Desktop.
Save rondale-sc/9418607 to your computer and use it in GitHub Desktop.
class Superclass
FIND_ME = "Found in superclass!"
end
# module ParentLexicalScope
# FIND_ME = "Found inside ParentLexicalScope"
# end
module ParentLexicalScope
FIND_ME = "Found inside ParentLexicalScope"
class Subclass < Superclass
p FIND_ME
end
end
# module ParentLexicalScope
# FIND_ME = "Found inside ParentLexicalScope"
# end
# module ParentLexicalScope
# class Subclass
# p FIND_ME
# end
# end
class ParentLexicalScope::Subclass
p FIND_ME
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment