method

new

ruby 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, Integer, or Float.