method

format

v1_9_3_392 - Show latest stable - Class: PrettyPrint
format(output='', maxwidth=79, newline="\\n", genspace=lambda {|n| ' ' * n})
public

This is a convenience method which is same as follows:

begin
  q = PrettyPrint.new(output, maxwidth, newline, &genspace)
  ...
  q.flush
  output
end