module CSV::DeleteSuffix
Public Instance Methods
delete_suffix(suffix)
click to toggle source
# File lib/csv/delete_suffix.rb, line 8 def delete_suffix(suffix) if end_with?(suffix) self[0..(-(suffix.size + 1))] else self end end