APIdock / Ruby
/
method

type

ruby latest stable - Class: Object

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

type()
public

Deprecated synonym for Object#class.

/*
 * 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));
}

AltStyle によって変換されたページ (->オリジナル) /