singleline_format(output=''.dup, maxwidth=nil, newline=nil, genspace=nil)
public
This is similar to PrettyPrint::format but the result has no breaks.
maxwidth, newline and genspace are ignored.
The invocation of breakable in the block
doesn’t break a line and is treated as just an invocation of text.
Show source
def PrettyPrint.singleline_format(output=''.dup, maxwidth=nil, newline=nil, genspace=nil)
q = SingleLine.new(output)
yield q
output
end