Method: Object#class
- Defined in:
- object.c
#class ⇒ Class
Returns the class of obj. This method must always be called with an explicit receiver, as #class is also a reserved word in Ruby.
1.class #=> Integer
self.class #=> Object
285 286 287 288 289 |
# File 'object.c', line 285
VALUE
rb_obj_class(VALUE obj)
{
return rb_class_real(CLASS_OF(obj));
}
|