Project

General

Profile

Actions

Feature #18146

open

Add `delete_prefix` and `delete_suffix` to `Pathname`

Added by koic (Koichi ITO) about 3 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:105130]

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

Also available in: Atom PDF

Like0