method
type
v1_8_6_287 -
Show latest stable
- Class:
Object
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));
} Related methods
- Instance methods
- ==
- ===
- =~
- __id__
- __send__
- class
- clone
- dclone
- display
- dup
- enum_for
- eql?
- equal?
- extend
- freeze
- frozen?
- hash
- id
- initialize_copy
- inspect
- instance_eval
- instance_of?
- instance_variable_defined?
- instance_variable_get
- instance_variable_get
- instance_variable_set
- instance_variable_set
- instance_variables
- is_a?
- kind_of?
- method
- methods
- nil?
- object_id
- private_methods
- protected_methods
- public_methods
- remove_instance_variable
- respond_to?
- send
- singleton_method_added
- singleton_method_removed
- singleton_method_undefined
- singleton_methods
- taint
- tainted?
- to_a
- to_enum
- to_s
- to_yaml
- to_yaml_properties
- to_yaml_style
- type
- untaint
- Class methods
- new