method
output
v1_8_6_287 -
Show latest stable
- Class:
PrettyPrint::Breakable
output(out, output_width)public
No documentation available.
# File lib/prettyprint.rb, line 272
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