1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/lib/v8/array.rb

15 lines
209 B
Ruby
Raw Normal View History

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