MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 216.73.216.153
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /proc/thread-self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/PP/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //proc/thread-self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/PP/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::BlankLineo;	;[I";All examples assume you have loaded the PP class with:;To:RDoc::Markup::Verbatim;[I"require 'pp'
;T:@format0S:RDoc::Markup::Heading:
leveli:	textI"What PP Does;T@o;	;[I"(Standard output by #p returns this:;To;;[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;0o;	;[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;;[;@W;0@\[[I"
class;T[[;[[I"pp;F@\[I"singleline_pp;F@\[:protected[[:private[[I"
instance;T[[;[[;[[;[[[U:RDoc::Context::Section[i0o;;[;0;0[@W@WcRDoc::TopLevel

MMCT - 2023