VOOZH about

URL: https://apidock.com/ruby/String/pretty_print

⇱ String#pretty_print - APIdock


method

pretty_print

ruby latest stable - Class: String
pretty_print(q)
public

No documentation available.

# File lib/pp.rb, line 394
 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

Related methods