Forum: Ruby-core [ruby-trunk - Feature #7362][Open] Adding Pathname#start_with?

Posted by aef (Alexander E. Fischer) (Guest)
on 2012-11-15 14:38
(Received via mailing list)
Issue #7362 has been reported by aef (Alexander E. Fischer).

----------------------------------------
Feature #7362: Adding Pathname#start_with?
https://bugs.ruby-lang.org/issues/7362

Author: aef (Alexander E. Fischer)
Status: Open
Priority: Normal
Assignee:
Category: lib
Target version:


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.
Posted by mame (Yusuke Endoh) (Guest)
on 2012-11-24 02:53
(Received via mailing list)
Issue #7362 has been updated by mame (Yusuke Endoh).

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


----------------------------------------
Feature #7362: Adding Pathname#start_with?
https://bugs.ruby-lang.org/issues/7362#change-33720

Author: aef (Alexander E. Fischer)
Status: Assigned
Priority: Normal
Assignee: akr (Akira Tanaka)
Category: lib
Target version: next minor


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.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.