Method: Module#===
- Defined in:
- object.c
#===(obj) ⇒ Boolean
Case Equality—Returns true if obj is an instance of mod or an instance of one of mod’s descendants. Of limited use for modules, but can be used in case statements to classify objects by class.
1809 1810 1811 1812 1813 |
# File 'object.c', line 1809
static VALUE
rb_mod_eqq(VALUE mod, VALUE arg)
{
return rb_obj_is_kind_of(arg, mod);
}
|