Sha256: 722e09f459309fce2f1dd10b4f2c6c1b9017a8e445394e0f1dfcf873ff35af78

Contents?: true

Size: 549 Bytes

Versions: 1

Compression:

Stored size: 549 Bytes

Contents

require "colorize"

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

    ResultStrategy = Proc.new do |result|
      puts "\t\t  Result:  ".colorize(:cyan) + "#{result}".colorize(:green)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
putter-0.1.0 lib/putter/print_strategy.rb