Method: Howzit::StringUtils#trunc!

Defined in:
lib/howzit/stringutils.rb

#trunc!(len) ⇒ Object

Truncate string in place (destructive)

Parameters:

  • The length to truncate at



177
178
179
# File 'lib/howzit/stringutils.rb', line 177

def trunc!(len)
  replace trunc(len)
end