class method
PP.singleline_pp
(::PP::_PrettyPrint obj, ?::PP::_LeftShift out) -> untyped
singleline_pp(obj, out=$>)
lib/pp.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/pp.rb, line 108
def PP.singleline_pp(obj, out=$>)
q = SingleLine.new(out)
q.guard_inspect_key {q.pp obj}
q.flush
out
end
Outputs obj to out like PP.pp but with no indent and newline.
PP.singleline_pp returns out.
See also
.sharing_detection=
.width_for
.sharing_detection
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0