In Files

  • ruby-3.1.2/lib/csv/delete_suffix.rb

Methods

Files

Class/Module Index [+]

Quicksearch

CSV::DeleteSuffix

Public Instance Methods

delete_suffix(suffix) click to toggle source
 
               # File ruby-3.1.2/lib/csv/delete_suffix.rb, line 8
def delete_suffix(suffix)
  if end_with?(suffix)
    self[0...-suffix.size]
  else
    self
  end
end