File: //usr/share/ri/3.0.0/system/Object/inspect-i.ri
U:RDoc::AnyMethod[iI"inspect:ETI"Object#inspect;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"PReturns a string containing a human-readable representation of <i>obj</i>. ;TI"HThe default #inspect shows the object's class name, an encoding of ;TI"Hits memory address, and a list of the instance variables and their ;TI"Ivalues (by calling #inspect on each of them). User defined classes ;TI"Gshould override this method to provide a better representation of ;TI"I<i>obj</i>. When overriding this method, it should return a string ;TI"Ewhose encoding is compatible with the default external encoding.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"C[ 1, 2, 3..4, 'five' ].inspect #=> "[1, 2, 3..4, \"five\"]"
;TI"FTime.new.inspect #=> "2008-03-08 19:43:39 +0900"
;TI"
;TI"class Foo
;TI" end
;TI">Foo.new.inspect #=> "#<Foo:0x0300c868>"
;TI"
;TI"class Bar
;TI" def initialize
;TI" @bar = 1
;TI" end
;TI" end
;TI"DBar.new.inspect #=> "#<Bar:0x0300c868 @bar=1>";T:@format0:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"obj.inspect -> string
;T0[ I"();T@$FI"Object;TcRDoc::NormalClass00