Actions
Feature #18146
openAdd `delete_prefix` and `delete_suffix` to `Pathname`
Status:
Open
Assignee:
-
Target version:
-
Description
Pathname
has sub
method, but does not have the methods mentioned in the title.
Pathname
may be able to provide delete_prefix
and delete_suffix
like String#delete_prefix
and String#delete_suffix
added in Ruby 2.5
This is an idea I got from feedback on RuboCop Performance.
https://github.com/rubocop/rubocop-performance/issues/245
Thank you.
No data to display
Actions
Like0