method
format
v2_1_10 -
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