Class: V8::Weak::Cell::Storage

Inherits:
Object
  • Object
show all
Defined in:
lib/v8/weak.rb

Instance Method Summary collapse

Instance Method Details

#access(&block) ⇒ Object



64
65
66
67
68
69
70
# File 'lib/v8/weak.rb', line 64

def access(&block)
  if @ref
    @ref.object || populate(block)
  else
    populate(block)
  end
end