Project

General

Profile

Actions

Feature #7362

open

Adding Pathname#start_with?

Feature #7362: Adding Pathname#start_with?

Added by aef (Alexander E. Fischer) almost 13 years ago. Updated almost 8 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 - Feature #7378: Adding Pathname#writeClosedakr (Akira Tanaka)Actions

Updated by mame (Yusuke Endoh) almost 13 years ago Actions #1 [ruby-core:49954]

  • Status changed from Open to Assigned
  • Assignee set to akr (Akira Tanaka)
  • Target version set to 2.6

Updated by naruse (Yui NARUSE) almost 8 years ago Actions #2

  • Target version deleted (2.6)
Actions

Also available in: PDF Atom