class V8::Weak::Ref
Public Class Methods
new(object)
click to toggle source
# File lib/v8/weak.rb, line 17 def initialize(object) @ref = ::WeakRef.new(object) end
Public Instance Methods
object()
click to toggle source
# File lib/v8/weak.rb, line 20 def object @ref.__getobj__ rescue ::WeakRef::RefError nil end