Module: TTN::Helpers::Core::String

Defined in:
lib/TTN/helpers/core/string.rb

Instance Method Summary collapse

Instance Method Details

#shorten(length = 100, options = {}) ⇒ Object



6
7
8
9
# File 'lib/TTN/helpers/core/string.rb', line 6

def shorten(length = 100, options = {})
  options.options_merge! :seperator => ' '
  truncate length, options
end