Project

General

Profile

Feature #7362

Adding Pathname#start_with?

Added by aef (Alexander E. Fischer) about 5 years ago. Updated about 5 years ago.

Status:
Assigned
Priority:
Normal
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

Related to Ruby trunk - Feature #7378: Adding Pathname#writeClosed2012-06-02

History

#1 [ruby-core:49954] Updated by mame (Yusuke Endoh) about 5 years ago

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

Also available in: Atom PDF