lib/putter/print_strategy.rb in putter-0.3.0 vs lib/putter/print_strategy.rb in putter-0.4.0

- old
+ new

@@ -1,12 +1,12 @@ require "colorize" module Putter module PrintStrategy - Default = Proc.new do |label, line, method, args, result| - prefix = "\tPutter Debugging: #{label} ".colorize(:cyan) - line = !line.nil? ? ".#{line} " : " " - suffix = "-- Method: :#{method}, Args: #{args}, Result: #{result}".colorize(:green) + Default = Proc.new do |data| + prefix = "\tPutter Debugging: #{data.label} ".colorize(:cyan) + line = !data.line.nil? ? ".#{data.line} " : " " + suffix = "-- Method: :#{data.method}, Args: #{data.args}, Result: #{data.result}".colorize(:green) puts prefix + line + suffix end end end