Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/eric_tools/hash.rb
Instance Method Summary collapse
- #to_debug ⇒ Object
- #to_logger ⇒ Object (also: #to_info)
Instance Method Details
#to_debug ⇒ Object
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_logger ⇒ Object 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 |