Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class method

PP.singleline_pp

(::PP::_PrettyPrint obj, ?::PP::_LeftShift out) -> untyped
singleline_pp(obj, out=$>)

Outputs obj to out like PP.pp but with no indent and newline.

PP.singleline_pp returns out.