class()
public
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 #=> Fixnum
self.class #=> Object
Show source
VALUE
rb_obj_class(VALUE obj)
{
return rb_class_real(CLASS_OF(obj));
}