Module: Kutils::DebugUtils

Defined in:
lib/utils/debug_utils.rb

Overview

DebugUtils provides quick debug print utilities.

Class Method Summary collapse

Class Method Details

.log(obj, label = nil) ⇒ void

This method returns an undefined value.

Pretty print object with optional label



16
17
18
19
# File 'lib/utils/debug_utils.rb', line 16

def self.log(obj, label = nil)
  puts "==== #{label || 'DEBUG'} ===="
  pp obj
end