/* * call-seq: * class.real_class => Class * * Return the object's first immediate ancestor; this may be the * object's class, its singleton class, or a module singleton. */ VALUE real_class(VALUE self) { return RBASIC(self)->klass; }