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

21 lines
457 B
C
Raw Normal View History

2015-04-05 10:40:55 +00:00
#ifndef RR_ARRAY
#define RR_ARRAY
namespace rr {
class Array : public Ref<v8::Array> {
public:
static void Init();
static VALUE New(int argc, VALUE argv[], VALUE self);
static VALUE Length(VALUE self);
static VALUE CloneElementAt(VALUE self, VALUE index);
inline Array(v8::Isolate* isolate, v8::Handle<v8::Array> array) : Ref<v8::Array>(isolate, array) {}
inline Array(VALUE value) : Ref<v8::Array>(value) {}
};
}
#endif