Methods
Attributes
[R] | indent | |
[R] | obj | |
[R] | width |
Class Public methods
new(sep, width, q)
Link
Instance Public methods
output(out, output_width)
Link
# File ../ruby/lib/prettyprint.rb, line 288 def output(out, output_width) @group.breakables.shift if @group.break? out << @pp.newline out << @pp.genspace.call(@indent) @indent else @pp.group_queue.delete @group if @group.breakables.empty? out << @obj output_width + @width end end