Module: Mustang::V8::Cast
- Included in:
- Object
- Defined in:
- ext/v8/v8_cast.cpp
Instance Method Summary collapse
-
#to_v8 ⇒ Object
Converts standard ruby object to ruby v8 representation.
Instance Method Details
#to_v8 ⇒ Object
Converts standard ruby object to ruby v8 representation.
[1,2,3].to_v8 # => #<V8::Array>
1230.to_v8 # => #<V8::Integer>
"foo".to_v8 # => #<V8::String>
140 141 142 143 144 |
# File 'ext/v8/v8_cast.cpp', line 140
static VALUE rb_v8_cast_to_v8(VALUE self)
{
HandleScope scope;
return to_ruby(to_v8(self));
}
|