mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
17 lines
No EOL
247 B
Ruby
17 lines
No EOL
247 B
Ruby
|
|
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 |