我有一个例子:
def a
puts "Hello"
end
r = ObjectSpace._id2ref(a.object_id) # r is a reference to a
r == a #=> true
r #=> nil
那么为什么无法调用a
withr
呢?
我有一个例子:
def a
puts "Hello"
end
r = ObjectSpace._id2ref(a.object_id) # r is a reference to a
r == a #=> true
r #=> nil
那么为什么无法调用a
withr
呢?