Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Object
/
//opt/alt/ruby21/share/ri/2.1.0/system/Object/singleton_class-i.ri
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 <i>obj</i>. This method creates ;TI";a new singleton class if <i>obj</i> does not have one.;To:RDoc::Markup::BlankLine o; ; [ I">If <i>obj</i> is <code>nil</code>, <code>true</code>, or ;TI"H<code>false</code>, it returns NilClass, TrueClass, or FalseClass, ;TI"respectively. ;TI"BIf <i>obj</i> is a Fixnum or a Symbol, it raises a TypeError.;T@o:RDoc::Markup::Verbatim; [I"CObject.new.singleton_class #=> #<Class:#<Object:0xb7ce1e24>> ;TI"5String.singleton_class #=> #<Class:String> ;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