method

singleline_format

v1_9_3_392 - Show latest stable - Class: PrettyPrint
singleline_format(output='', 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.