Project

General

Profile

Actions

Feature #7362

open

Adding Pathname#start_with?

Added by aef (Alexander E. Fischer) over 11 years ago. Updated about 6 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

Updated by mame (Yusuke Endoh) over 11 years ago

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

Updated by naruse (Yui NARUSE) about 6 years ago

  • Target version deleted (2.6)
Actions

Also available in: Atom PDF

Like0
Like0Like0