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



52
53
54
55
56
57
58
# File 'lib/v8/weak.rb', line 52

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