Class: WeakRef

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyqc/stdlib/weakref.rb

Overview

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.

Class Method Summary collapse

Class Method Details

.rubyqcObject



8
9
10
11
12
# 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