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 8
def delete_suffix(suffix)
  if end_with?(suffix)
    self[0...-suffix.size]
  else
    self
  end
end