mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
13 lines
No EOL
219 B
Ruby
13 lines
No EOL
219 B
Ruby
class V8::Array < V8::Object
|
|
def each
|
|
@context.enter do
|
|
0.upto(@native.Length() - 1) do |i|
|
|
yield @context.to_ruby(@native.Get(i))
|
|
end
|
|
end
|
|
end
|
|
|
|
def length
|
|
@native.Length()
|
|
end
|
|
end |