D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Class
/
Filename :
attached_object-i.ri
back
Copy
U:RDoc::AnyMethod[iI"attached_object:ETI"Class#attached_object;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"FReturns the object for which the receiver is the singleton class.;Fo:RDoc::Markup::BlankLine o; ; [I"?Raises an TypeError if the class is not a singleton class.;F@o:RDoc::Markup::Verbatim; [I"class Foo; end ;TI" ;TI"8Foo.singleton_class.attached_object #=> Foo ;TI"^Foo.attached_object #=> TypeError: `Foo' is not a singleton class ;TI"NFoo.new.singleton_class.attached_object #=> #<Foo:0x000000010491a370> ;TI"dTrueClass.attached_object #=> TypeError: `TrueClass' is not a singleton class ;TI"bNilClass.attached_object #=> TypeError: `NilClass' is not a singleton class;T:@format0: @fileI" object.c;T:0@omit_headings_from_table_of_contents_below0I"attached_object -> object ;F0[ I"();T@FI" Class;TcRDoc::NormalClass00