class Utilrb::WeakRef
Public Class Methods
new(obj)
click to toggle source
Calls superclass method
# File lib/utilrb/weakref.rb, line 5 def initialize(obj) if obj.kind_of?(::WeakRef) Kernel.raise ::ArgumentError, "cannot create a weakref of a weakref" end super end
Public Instance Methods
get()
click to toggle source
# File lib/utilrb/weakref.rb, line 12 def get __getobj__ end