Class: Mustang::V8::Data
Direct Known Subclasses
Instance Method Summary collapse
-
#empty? ⇒ Boolean
Returns
true
when value is empty. -
#error? ⇒ Boolean
Returns
true
when value is a handled javascipt exception. -
#null? ⇒ Boolean
Returns
true
when value is a javascipt null. -
#undefined? ⇒ Boolean
Returns
true
when value is undefined. -
#value? ⇒ Boolean
Returns
true
when value is a javascript value..
Instance Method Details
#empty? ⇒ Boolean
Returns true
when value is empty.
60 61 62 63 |
# File 'ext/v8/v8_base.cpp', line 60
static VALUE rb_v8_data_empty_p(VALUE self)
{
return rb_obj_is_kind_of(self, rb_cV8EmptyClass);
}
|
#error? ⇒ Boolean
Returns true
when value is a handled javascipt exception.
36 37 38 39 |
# File 'ext/v8/v8_base.cpp', line 36
static VALUE rb_v8_data_error_p(VALUE self)
{
return rb_obj_is_kind_of(self, rb_eV8Error);
}
|
#null? ⇒ Boolean
Returns true
when value is a javascipt null.
48 49 50 51 |
# File 'ext/v8/v8_base.cpp', line 48
static VALUE rb_v8_data_null_p(VALUE self)
{
return rb_obj_is_kind_of(self, rb_cV8NullClass);
}
|
#undefined? ⇒ Boolean
Returns true
when value is undefined.
72 73 74 75 |
# File 'ext/v8/v8_base.cpp', line 72
static VALUE rb_v8_data_undefined_p(VALUE self)
{
return rb_obj_is_kind_of(self, rb_cV8UndefinedClass);
}
|
#value? ⇒ Boolean
Returns true
when value is a javascript value..
24 25 26 27 |
# File 'ext/v8/v8_base.cpp', line 24
static VALUE rb_v8_data_value_p(VALUE self)
{
return rb_obj_is_kind_of(self, rb_cV8Value);
}
|