X7ROOT File Manager
Current Path:
/opt/alt/ruby18/share/ri/1.8/system/PrettyPrint
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
PrettyPrint
/
ðŸ“
..
ðŸ“
Breakable
ðŸ“
Group
ðŸ“
GroupQueue
ðŸ“
SingleLine
ðŸ“
Text
📄
break_outmost_groups-i.yaml
(199 B)
📄
breakable-i.yaml
(672 B)
📄
cdesc-PrettyPrint.yaml
(3.13 KB)
📄
current_group-i.yaml
(185 B)
📄
fill_breakable-i.yaml
(212 B)
📄
first%3f-i.yaml
(657 B)
📄
flush-i.yaml
(228 B)
📄
format-c.yaml
(500 B)
📄
group-i.yaml
(765 B)
📄
group_sub-i.yaml
(188 B)
📄
nest-i.yaml
(313 B)
📄
new-c.yaml
(1.11 KB)
📄
singleline_format-c.yaml
(628 B)
📄
text-i.yaml
(385 B)
Editing: new-c.yaml
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Creates a buffer for pretty printing. - !ruby/struct:SM::Flow::P body: <tt>output</tt> is an output target. If it is not specified, '' is assumed. It should have a << method which accepts the first argument <tt>obj</tt> of PrettyPrint#text, the first argument <tt>sep</tt> of PrettyPrint#breakable, the first argument <tt>newline</tt> of PrettyPrint.new, and the result of a given block for PrettyPrint.new. - !ruby/struct:SM::Flow::P body: <tt>maxwidth</tt> specifies maximum line length. If it is not specified, 79 is assumed. However actual outputs may overflow <tt>maxwidth</tt> if long non-breakable texts are provided. - !ruby/struct:SM::Flow::P body: <tt>newline</tt> is used for line breaks. "\n" is used if it is not specified. - !ruby/struct:SM::Flow::P body: The block is used to generate spaces. {|width| ' ' * width} is used if it is not given. full_name: PrettyPrint::new is_singleton: true name: new params: (output='', maxwidth=79, newline="\n", &genspace) visibility: public
Upload File
Create Folder