Add `delete_prefix` and `delete_suffix` to `Pathname`
sub method, but does not have the methods mentioned in the title.
Pathname may be able to provide
String#delete_suffix added in Ruby 2.5
This is an idea I got from feedback on RuboCop Performance.
No data to display