class WeakRef
In MRI, WeakRef
is a Delegator
, so this is not really needed. But in Rubinius, WeakRef
is not a Delegator
, therefore we need to provide the exact same implementation here.
Public Class Methods
rubyqc()
click to toggle source
# File lib/rubyqc/stdlib/weakref.rb, line 8 def self.rubyqc # Since Rubinius use BasicObject to implement WeakRef, it can't see # Object::Class but ::Class. new(::Class.rubyqc.rubyqc) end