U:RDoc::AnyMethod[iI"singleton_class:ETI"Object#singleton_class;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"EReturns the singleton class of obj. This method creates ;TI";a new singleton class if obj does not have one.;To:RDoc::Markup::BlankLine o;
; [ I">If obj is nil
, true
, or ;TI"Hfalse
, it returns NilClass, TrueClass, or FalseClass, ;TI"respectively. ;TI"MIf obj is an Integer, a Float or a Symbol, it raises a TypeError.;T@o:RDoc::Markup::Verbatim; [I"CObject.new.singleton_class #=> #>
;TI"5String.singleton_class #=> #
;TI"-nil.singleton_class #=> NilClass;T:@format0:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"%obj.singleton_class -> class
;T0[ I"();T@FI"Object;TcRDoc::NormalClass00