End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
PP.singleline_pp
singleline_pp(obj, out=$>)
lib/pp.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/pp.rb, line 83
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.