Class: JAVA::BasicObject

Inherits:
Value
  • Object
show all
Defined in:
ext/primitive/primitive.c

Class Method Summary collapse

Methods inherited from Value

const_missing

Class Method Details

.===(o) ⇒ Object



2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
# File 'ext/primitive/primitive.c', line 2738

static VALUE
r_JavaBasicObject_eqv(VALUE self, VALUE o)
{
	if (TYPE(o) == T_DATA && RBASIC(o)->klass == r_JavaException) {
		JavaException *p;
		Data_Get_Struct(o, JavaException, p);
		return rb_obj_is_kind_of(p->cause, self);
	}
	return rb_obj_is_kind_of(o, self);
}