Created
January 27, 2013 09:30
-
-
Save crguezl/4647549 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Kernel | |
A=B=C=D=E=F="defined in Kernel" | |
end | |
#Top level or global constant defined in Object | |
A=B=C=D=E="defined at top-level" | |
class Super | |
A=B=C=D="defined in superclass" | |
end | |
module Included | |
A=B=C="defined in included module" | |
end | |
module Enclosing | |
A=B="defined in enclosing module" | |
class Local < Super | |
include Included | |
A = "defined locally" | |
search = (Module.nesting + self.ancestors + Object.ancestors).uniq | |
puts A | |
puts B | |
puts C | |
puts D | |
puts E | |
puts F | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment