method
pretty_print
v2_4_6 -
Show latest stable
- Class:
String
pretty_print(q)public
No documentation available.
# File lib/pp.rb, line 421
def pretty_print(q) # :nodoc:
lines = self.lines
if lines.size > 1
q.group(0, '', '') do
q.seplist(lines, lambda { q.text ' +'; q.breakable }) do |v|
q.pp v
end
end
else
q.text inspect
end
end