Class | String |
In: |
lib/merb-helpers/core_ext.rb
|
Parent: | Object |
Truncates a string to the given length and appends the given suffix if the string is, in fact, truncated.
"This is a long string right here".truncate(10, "...") #=> "This is..."