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
Register or log in to add new notes.