Class: Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/active_rdf_log.rb

Instance Method Summary collapse

Instance Method Details

#debug_pp(message, variable) ⇒ Object



86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# File 'lib/active_rdf_log.rb', line 86

def debug_pp(message, variable)
  if variable.respond_to?(:join)
    if variable.empty?
      debug(sprintf(message, "empty"))
    else
      debug(sprintf(message, variable.join(', ')))
    end
  else
    if variable.nil?
      debug(sprintf(message, 'empty'))
    else
      debug(sprintf(message, variable))
    end
  end
end