method

new

v2_2_9 - Show latest stable - Class: WeakRef
new(orig)
public

Creates a weak reference to orig

Raises an ArgumentError if the given orig is immutable, such as Symbol, Fixnum, or Float.