Skip to content

Instantly share code, notes, and snippets.

@yitsushi
Created October 26, 2010 14:35
Show Gist options
  • Save yitsushi/647008 to your computer and use it in GitHub Desktop.
Save yitsushi/647008 to your computer and use it in GitHub Desktop.
class A
def test
puts "A::test"
end
end
class B
def test
puts "B::test"
C.a.test
end
end
class C
def self.test
@@a = A.new
@@b = B.new
@@b.test
end
def self.a
@@a
end
end
C::test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment