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



55
56
57
58
59
60
61
# File 'lib/v8/weak.rb', line 55

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