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]
  else
    self
  end
end
            
There is an updated format of the API docs for this version here.