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