Skip to content

Instantly share code, notes, and snippets.

@fxposter
Created July 31, 2012 09:41
Show Gist options
  • Save fxposter/3215546 to your computer and use it in GitHub Desktop.
Save fxposter/3215546 to your computer and use it in GitHub Desktop.
t = Thread.new do
class A
sleep 10
def self.a
end
end
sleep 2
end
t2 = Thread.new do
sleep 1
p defined?(A)
p A
p A.respond_to?(:a)
sleep 10
p A.respond_to?(:a)
end
t.join
t2.join
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment