module Fixnames::Debug
Public Instance Methods
bold(str)
click to toggle source
# File lib/fixnames/debug.rb, line 18 def bold(str) [ Color.bold, Color.yellow, Color.on_blue, str, Color.clear ].join end
debug(msg)
click to toggle source
# File lib/fixnames/debug.rb, line 39 def debug(msg) Color.puts_msg(msg, '>', :cyan) if @option.verbose > 2 end
info(msg)
click to toggle source
# File lib/fixnames/debug.rb, line 35 def info(msg) Color.puts_msg(msg, '-', :green) if @option.verbose > 1 end
note(msg)
click to toggle source
# File lib/fixnames/debug.rb, line 31 def note(msg) Color.puts_msg(msg, '!', :yellow) if @option.verbose > 0 end
warn(msg)
click to toggle source
# File lib/fixnames/debug.rb, line 27 def warn(msg) Color.puts_msg(msg, '*', :red) if @option.verbose > 0 end