123456789_123456789_123456789_123456789_123456789_

Class: String

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: lib/pp.rb

Instance Method Summary

Instance Method Details

#pretty_print(q)

[ GitHub ]

  
# File 'lib/pp.rb', line 450

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