Sha256: 0877beb73773948de20a8bb7bc2ebf19cca3e1f49acc7038e454b455ae1106d2

Contents?: true

Size: 247 Bytes

Versions: 5

Compression:

Stored size: 247 Bytes

Contents

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

    def length
      @native.Length()
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
therubyracer-0.7.5 lib/v8/array.rb
therubyracer-0.7.4 lib/v8/array.rb
therubyracer-0.7.3 lib/v8/array.rb
therubyracer-0.7.2 lib/v8/array.rb
therubyracer-0.7.2.pre lib/v8/array.rb