Sha256: c1c1e381764c2bea05231cf8291139eff995af13439934b15fb61b930e4fa7cf

Contents?: true

Size: 311 Bytes

Versions: 2

Compression:

Stored size: 311 Bytes

Contents

require "colorize"

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
putter-0.2.1 lib/putter/print_strategy.rb
putter-0.2.0 lib/putter/print_strategy.rb