Sha256: 18913f4f280681a074ffc627be3314dc68fd498a62388048eb735b88aa8f5cf6

Contents?: true

Size: 250 Bytes

Versions: 89

Compression:

Stored size: 250 Bytes

Contents

module V8
  class Array < V8::Object
    
    def each
      @portal.open do |to|
        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

89 entries across 89 versions & 6 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/therubyracer-0.10.1/lib/v8/array.rb
classiccms-0.7.4 vendor/bundle/gems/therubyracer-0.10.1/lib/v8/array.rb
classiccms-0.7.3 vendor/bundle/gems/therubyracer-0.10.1/lib/v8/array.rb
classiccms-0.7.2 vendor/bundle/gems/therubyracer-0.10.1/lib/v8/array.rb
classiccms-0.7.1 vendor/bundle/gems/therubyracer-0.10.1/lib/v8/array.rb
classiccms-0.7.0 vendor/bundle/gems/therubyracer-0.10.1/lib/v8/array.rb
classiccms-0.6.9 vendor/bundle/gems/therubyracer-0.10.1/lib/v8/array.rb
classiccms-0.6.8 vendor/bundle/gems/therubyracer-0.10.1/lib/v8/array.rb
classiccms-0.6.7 vendor/bundle/gems/therubyracer-0.10.1/lib/v8/array.rb
classiccms-0.6.6 vendor/bundle/gems/therubyracer-0.10.1/lib/v8/array.rb
classiccms-0.6.5 vendor/bundle/gems/therubyracer-0.10.1/lib/v8/array.rb
classiccms-0.6.4 vendor/bundle/gems/therubyracer-0.10.1/lib/v8/array.rb
classiccms-0.6.3 vendor/bundle/gems/therubyracer-0.10.1/lib/v8/array.rb
classiccms-0.6.2 vendor/bundle/gems/therubyracer-0.10.1/lib/v8/array.rb
classiccms-0.6.1 vendor/bundle/gems/therubyracer-0.10.1/lib/v8/array.rb
classiccms-0.6.0 vendor/bundle/gems/therubyracer-0.10.1/lib/v8/array.rb
classiccms-0.5.17 vendor/bundle/gems/therubyracer-0.10.1/lib/v8/array.rb
classiccms-0.5.16 vendor/bundle/gems/therubyracer-0.10.1/lib/v8/array.rb
classiccms-0.5.15 vendor/bundle/gems/therubyracer-0.10.1/lib/v8/array.rb
classiccms-0.5.14 vendor/bundle/gems/therubyracer-0.10.1/lib/v8/array.rb