Object
Format an object with it’s pretty print method.
Create a new formatter. The maximum width of the message can be specified with the width parameter (defaults to 79 characters).
# File lib/lumberjack/formatter/pretty_print_formatter.rb, line 12 def initialize(width = 79) @width = width end
# File lib/lumberjack/formatter/pretty_print_formatter.rb, line 16 def call(obj) s = StringIO.new PP.pp(obj, s) s.string.chomp end
[Validate]
Generated with the Darkfish Rdoc Generator 2.