Skip to content

Instantly share code, notes, and snippets.

@workmad3
Created September 28, 2012 19:57
Show Gist options
  • Save workmad3/00ff4d00b3098e6bcedf to your computer and use it in GitHub Desktop.
Save workmad3/00ff4d00b3098e6bcedf to your computer and use it in GitHub Desktop.
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