Sha256: c2e3988b214eca76bfddf239b8de843006746ecf50d400b0354a9e67f9582035
Contents?: true
Size: 446 Bytes
Versions: 4
Compression:
Stored size: 446 Bytes
Contents
class Hash def to_logger self.each_pair { |k, v| info1 = '' info1 << ((k||'').to_s rescue '') <<":" << ((v||'').to_s rescue '') << "\n" ApplicationController.logger.info info1 } end def to_debug self.each_pair { |k, v| info1 = '' info1 << ((k||'').to_s rescue '') <<":" << ((v||'').to_s rescue '') << "\n" ApplicationController.logger.debug info1 } end alias :to_info :to_logger end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
eric_tools-0.0.7 | lib/eric_tools/hash.rb |
eric_tools-0.0.6 | lib/eric_tools/hash.rb |
eric_tools-0.0.5 | lib/eric_tools/hash.rb |
eric_tools-0.0.4 | lib/eric_tools/hash.rb |