In Files

Parent

Methods

Files

V8::Weak::Ref

Public Class Methods

new(object) click to toggle source
# File lib/v8/weak.rb, line 20
def initialize(object)
  @ref = ::WeakRef.new(object)
end

Public Instance Methods

object() click to toggle source
# File lib/v8/weak.rb, line 23
def object
  @ref.__getobj__
rescue ::WeakRef::RefError
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.