From: "koic (Koichi ITO)" Date: 2021-09-03T04:59:48+00:00 Subject: [ruby-core:105130] [Ruby master Feature#18146] Add `delete_prefix` and `delete_suffix` to `Pathname` Issue #18146 has been reported by koic (Koichi ITO). ---------------------------------------- Feature #18146: Add `delete_prefix` and `delete_suffix` to `Pathname` https://bugs.ruby-lang.org/issues/18146 * Author: koic (Koichi ITO) * Status: Open * Priority: Normal ---------------------------------------- `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. -- https://bugs.ruby-lang.org/ Unsubscribe: