Project

General

Profile

Actions

Feature #7362

open

Adding Pathname#start_with?

Added by aef (Alexander E. Fischer) about 12 years ago. Updated almost 7 years ago.

Status:
Assigned
Target version:
-
[ruby-core:49376]

Description

If a Pathname starts with another Pathname, that means that the former Pathname lies below the latter Pathname, as long as both Pathnames are interpreted from the same location or both are given as absolute.

Therefore I would like to see a method #start_with? just like the one on String but for Pathnames.

If you like the idea, just tell me. I will provide a patch then.


Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #7378: Adding Pathname#writeClosedakr (Akira Tanaka)06/02/2012Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0