Skip to content

Instantly share code, notes, and snippets.

@jdallien
Created April 9, 2009 05:48
Show Gist options
  • Save jdallien/92271 to your computer and use it in GitHub Desktop.
Save jdallien/92271 to your computer and use it in GitHub Desktop.
# > A.test
# B inside A
# top level B
class A
class B
def self.identify
puts "B inside A"
end
end
def self.test
B.identify
::B.identify
end
end
class B
def self.identify
puts "top level B"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment