lib/card/content/truncate.rb in card-1.98.3 vs lib/card/content/truncate.rb in card-1.99.0
- old
+ new
@@ -14,9 +14,11 @@
wordstring += ELLIPSES_HTML if truncated
# wordstring += '...' if wordlist.length > l
polish wordstring
end
+ private
+
def truncate input, words
wordlist = input.to_s.split
l = words.to_i - 1
l = 0 if l.negative?
truncating = wordlist.length > l