In Files

  • csv/delete_suffix.rb

Methods

CSV::DeleteSuffix

Public Instance Methods

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