-
-
Save workmad3/00ff4d00b3098e6bcedf to your computer and use it in GitHub Desktop.
This file contains 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 Foo | |
module Bar | |
TEST = 5 | |
end | |
class Buzz | |
def relative | |
puts Bar::TEST # ::Foo::Bar::Test | |
end | |
def absolute | |
puts ::Bar::TEST | |
end | |
end | |
end | |
module Fizz | |
class Buzz2 < ::Foo::Buzz | |
end | |
end | |
module Bar | |
TEST = 10 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment