method

pretty_print

Importance_0
v2_4_6 - Show latest stable - 0 notes - Class: String
pretty_print(q) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# 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
Register or log in to add new notes.