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
2012-06-07 11:09:13 -05:00

13 lines
No EOL
218 B
Ruby

class V8::Array < V8::Object
def each
@context.enter do
for i in 0..(@native.Length() - 1)
yield @context.to_ruby(@native.Get(i))
end
end
end
def length
@native.Length()
end
end