Sha256: cf0e5f10c4fce8577188e2975a48be4e64da70636c3f54445006aaba1da0bfa5
Contents?: true
Size: 477 Bytes
Versions: 4
Compression:
Stored size: 477 Bytes
Contents
class String def to_logger ::ApplicationController.logger.info self ::ApplicationController.logger.info "\n" end def to_debug ::ApplicationController.logger.debug self ::ApplicationController.logger.debug "\n" end alias :to_info :to_logger def show_simple_with_points return '' if self.blank? max = 10 introduce = self[0, max] introduce += '...' if self.size > max introduce end alias :simple :show_simple_with_points end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
eric_tools-0.0.7 | lib/eric_tools/string.rb |
eric_tools-0.0.6 | lib/eric_tools/string.rb |
eric_tools-0.0.5 | lib/eric_tools/string.rb |
eric_tools-0.0.4 | lib/eric_tools/string.rb |