Module: Fixnames::Debug
- Included in:
- Engine
- Defined in:
- lib/fixnames/debug.rb
Defined Under Namespace
Classes: Color
Instance Method Summary (collapse)
- - (Object) bold(str)
- - (Object) debug(msg)
- - (Object) info(msg)
- - (Object) note(msg)
- - (Object) warn(msg)
Instance Method Details
- (Object) bold(str)
18 19 20 21 22 23 24 25 |
# File 'lib/fixnames/debug.rb', line 18 def bold(str) [ Color.bold, Color.yellow, Color.on_blue, str, Color.clear ].join end |
- (Object) debug(msg)
39 40 41 |
# File 'lib/fixnames/debug.rb', line 39 def debug(msg) Color.puts_msg(msg, '>', :cyan) if @option.verbose > 2 end |
- (Object) info(msg)
35 36 37 |
# File 'lib/fixnames/debug.rb', line 35 def info(msg) Color.puts_msg(msg, '-', :green) if @option.verbose > 1 end |
- (Object) note(msg)
31 32 33 |
# File 'lib/fixnames/debug.rb', line 31 def note(msg) Color.puts_msg(msg, '!', :yellow) if @option.verbose > 0 end |
- (Object) warn(msg)
27 28 29 |
# File 'lib/fixnames/debug.rb', line 27 def warn(msg) Color.puts_msg(msg, '*', :red) if @option.verbose > 0 end |