class V8::Array

Public Instance Methods

each() { |rb(native.Get(i))| ... } click to toggle source
# File lib/v8/array.rb, line 5
def each
  @portal.open do |to|
    for i in 0..(@native.Length() - 1)
      yield to.rb(@native.Get(i))
    end
  end
end
length() click to toggle source
# File lib/v8/array.rb, line 13
def length
  @native.Length()
end