In https://bugs.ruby-lang.org/issues/12694, we decided to have String#delete_prefix.
It would be nice to have String#delete_suffix method to delete suffix from a string for symmetry although it can be achieved with String#chomp as:
At yesterday meeting, a name lchomp was proposed but rejected because of the special deal of CR LF.
If delete_suffix will be introduced, it should keep CR before LF when the argument is LF only, as well as delete_prefix.