Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#to_debugObject



10
11
12
13
14
15
16
# File 'lib/eric_tools/hash.rb', line 10

def to_debug
  self.each_pair { |k, v|
    info1 = ''
    info1 << ((k||'').to_s rescue '') <<":" << ((v||'').to_s rescue '') << "\n"
    ApplicationController.logger.debug info1
  }
end

#to_loggerObject Also known as: to_info



2
3
4
5
6
7
8
# File 'lib/eric_tools/hash.rb', line 2

def to_logger
  self.each_pair { |k, v|
    info1 = ''
    info1 << ((k||'').to_s rescue '') <<":" << ((v||'').to_s rescue '') << "\n"
    ApplicationController.logger.info info1
  }
end