Sha256: afaaac6ba929d558f2d8f2c183d6f16968a96148475f6ec7f14352d3d4662457
Contents?: true
Size: 254 Bytes
Versions: 3
Compression:
Stored size: 254 Bytes
Contents
module TTN module Helpers module Core module String def shorten(length = 100, options = {}) options.options_merge! :seperator => ' ' truncate length, options end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ttn_helpers-0.1.2 | lib/TTN/helpers/core/string.rb |
ttn_helpers-0.1.1 | lib/TTN/helpers/core/string.rb |
ttn_helpers-0.1 | lib/TTN/helpers/core/string.rb |