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



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/active_rdf_log.rb', line 18

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