⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
PP
/
View File Name :
cdesc-PP.ri
U:RDoc::NormalClass[iI"PP:ET@I"PrettyPrint;To:RDoc::Markup::Document:@parts[o;;[ o:RDoc::Markup::Paragraph;[I"'A pretty-printer for Ruby objects.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading: leveli: textI"What PP Does;T@o; ;[I"(Standard output by #p returns this:;To:RDoc::Markup::Verbatim;[I"{#<PP:0x81fedf0 @genspace=#<Proc:0x81feda0>, @group_queue=#<PrettyPrint::GroupQueue:0x81fed3c @queue=[[#<PrettyPrint::Group:0x81fed78 @breakables=[], @depth=0, @break=false>], []]>, @buffer=[], @newline="\n", @group_stack=[#<PrettyPrint::Group:0x81fed78 @breakables=[], @depth=0, @break=false>], @buffer_width=0, @indent=0, @maxwidth=79, @output_width=2, @output=#<IO:0x8114ee4>> ;T:@format0o; ;[I"(Pretty-printed output returns this:;To;;[I"#<PP:0x81fedf0 ;TI" @buffer=[], ;TI" @buffer_width=0, ;TI"# @genspace=#<Proc:0x81feda0>, ;TI" @group_queue= ;TI"+ #<PrettyPrint::GroupQueue:0x81fed3c ;TI" @queue= ;TI"T [[#<PrettyPrint::Group:0x81fed78 @break=false, @breakables=[], @depth=0>], ;TI" []]>, ;TI" @group_stack= ;TI"Q [#<PrettyPrint::Group:0x81fed78 @break=false, @breakables=[], @depth=0>], ;TI" @indent=0, ;TI" @maxwidth=79, ;TI" @newline="\n", ;TI" @output=#<IO:0x8114ee4>, ;TI" @output_width=2> ;T;0S;;i; I" Usage;T@o;;[ I"!pp(obj) #=> obj ;TI"!pp obj #=> obj ;TI"/pp(obj1, obj2, ...) #=> [obj1, obj2, ...] ;TI"!pp() #=> nil ;T;0o; ;[I"DOutput <tt>obj(s)</tt> to <tt>$></tt> in pretty printed format.;T@o; ;[I" It returns <tt>obj(s)</tt>.;T@S;;i; I"Output Customization;T@o; ;[I"GTo define a customized pretty printing function for your classes, ;TI"Aredefine method <code>#pretty_print(pp)</code> in the class.;T@o; ;[I"_<code>#pretty_print</code> takes the +pp+ argument, which is an instance of the PP class. ;TI"KThe method uses #text, #breakable, #nest, #group and #pp to print the ;TI"object.;T@S;;i; I"Pretty-Print JSON;T@o; ;[I"8To pretty-print JSON refer to JSON#pretty_generate.;T@S;;i; I"Author;To; ;[I" Tanaka Akira <akr@fsij.org>;T: @fileI"lib/pp.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[[ I"sharing_detection;TI"RW;T:publicTI"lib/pp.rb;T[ [[I"PPMethods;To;;[ ;@Q;0@V[[I" class;T[[;[[I"pp;T@V[I"singleline_pp;T@V[:protected[ [:private[ [I" instance;T[[;[ [;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ;0;0[@Q@QcRDoc::TopLevel