public Method

Object.type

obj.type    class

Deprecated synonym for Object#class.

Source Code

/*
*  call-seq:
*     obj.type   => class
*  
*  Deprecated synonym for <code>Object#class</code>.
*/

VALUE
rb_obj_type(obj)
   VALUE obj;
{
   rb_warn("Object#type is deprecated; use Object#class");
   return rb_class_real(CLASS_OF(obj));
}
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.