Class: CutePrint::Format::PrettyPrint Private

Inherits:
Object
  • Object
show all
Defined in:
lib/cute_print/format/pretty_print.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#format(width, value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



9
10
11
12
13
# File 'lib/cute_print/format/pretty_print.rb', line 9

def format(width, value)
  out = StringIO.new
  PP.pp(value, out, width)
  out.string.lines
end