Sha256: db116c7c3758e42fef341d4046a37afe08c6ab0a2c240501ee88ae3ee5cee51e

Contents?: true

Size: 249 Bytes

Versions: 2

Compression:

Stored size: 249 Bytes

Contents

module V8
  class Array < V8::Object
    
    def each
      @context.enter do
        for i in 0..(@native.Length() - 1)
          yield To.ruby(@native.Get(i))
        end
      end
    end

    def length
      @native.Length()
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
therubyracer-0.7.1 lib/v8/array.rb
therubyracer-0.7.1.pre lib/v8/array.rb