Sha256: 03849081e410ebea78838172e0e3d40a586991030e6cb142bccfe41183060cb6

Contents?: true

Size: 197 Bytes

Versions: 37

Compression:

Stored size: 197 Bytes

Contents

class V8::Conversion
  module Array
    def to_v8
      array = V8::Array.new(length)
      each_with_index do |item, i|
        array[i] = item
      end
      return array.to_v8
    end
  end
end

Version data entries

37 entries across 37 versions & 8 rubygems

Version Path
therubyracer-0.11.0beta8-x86-linux lib/v8/conversion/array.rb
therubyracer-0.11.0beta8 lib/v8/conversion/array.rb
therubyracer-0.11.0beta7-x86_64-linux lib/v8/conversion/array.rb
therubyracer-0.11.0beta7-x86-linux lib/v8/conversion/array.rb
therubyracer-0.11.0beta7-x86_64-darwin-10 lib/v8/conversion/array.rb
therubyracer-0.11.0beta7 lib/v8/conversion/array.rb
therubyracer-0.11.0beta6-x86-linux lib/v8/conversion/array.rb
therubyracer-0.11.0beta6-x86_64-linux lib/v8/conversion/array.rb
therubyracer-0.11.0beta6 lib/v8/conversion/array.rb
therubyracer-0.11.0beta5-x86-linux lib/v8/conversion/array.rb
therubyracer-0.11.0beta5 lib/v8/conversion/array.rb
therubyracer-0.11.0beta5-x86_64-linux lib/v8/conversion/array.rb
therubyracer-0.11.0beta4 lib/v8/conversion/array.rb
therubyracer-0.11.0beta3 lib/v8/conversion/array.rb
therubyracer-0.11.0beta2-x86_64-linux lib/v8/conversion/array.rb
therubyracer-0.11.0beta2 lib/v8/conversion/array.rb
therubyracer-0.11.0beta1 lib/v8/conversion/array.rb