class String

Public Instance Methods

show_simple_with_points() click to toggle source
# File lib/eric_tools/string.rb, line 14
def show_simple_with_points
  return '' if self.blank?
  max = 10
  introduce = self[0, max]
  introduce += '...' if self.size > max
  introduce
end
Also aliased as: simple
simple()
to_debug() click to toggle source
# File lib/eric_tools/string.rb, line 7
def to_debug
  ::ApplicationController.logger.debug self
  ::ApplicationController.logger.debug "\n"
end
to_info()
Alias for: to_logger
to_logger() click to toggle source
# File lib/eric_tools/string.rb, line 2
def to_logger
  ::ApplicationController.logger.info self
  ::ApplicationController.logger.info "\n"
end
Also aliased as: to_info