Module: HammerCLI::Logger::Watch

Defined in:
lib/hammer_cli/logger_watch.rb

Instance Method Summary collapse

Instance Method Details

#watch(label, obj, options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/hammer_cli/logger_watch.rb', line 6

def watch(label, obj, options={})
  if debug?
    options = { :plain => HammerCLI::Settings.get(:watch_plain), :indent => -2 }.merge(options)
    debug label + "\n" + obj.ai(options)
  end
end