Actions
Feature #7378
closed
Actions
Like0
Like0Like0Like0Like0Like0Like0
Added by aef (Alexander E. Fischer) over 12 years ago. Updated about 12 years ago.
Description
Files
0001-ext-pathname-lib-pathname.rb-add-Pathname-write-and-.patch (2.17 KB) 0001-ext-pathname-lib-pathname.rb-add-Pathname-write-and-.patch | Eregon (Benoit Daloze), 01/14/2013 06:01 AM |
Hello,
Your feature requests sound very logical to me, and I actually made a path manipulation library called "Path" [1]
Notably, #write, #glob and #touch are already implemented as you propose and #start_with? functionality is implemented by #inside?.
I would love to see @akr's opinion on this and to have a path manipulation class in core with these additions and others which are present in Path and other libraries.
[1] https://github.com/eregon/path
On 17/11/12 12:46, Eregon (Benoit Daloze) wrote:
Issue #7378 has been updated by Eregon (Benoit Daloze).
Hello,
Your feature requests sound very logical to me, and I actually made a path manipulation library called "Path" [1]
Notably, #write, #glob and #touch are already implemented as you propose and #start_with? functionality is implemented by #inside?.I would love to see @akr's opinion on this and to have a path manipulation class in core with these additions and others which are present in Path and other libraries.
[1] https://github.com/eregon/path
I've written almost exactly this code myself in the past, even down to
the Path constant :-) I'd love to see this promoted to stdlib.
--
Alex
I definitely also have written Pathname#write, and used it. Please provide a patch, that should help getting it included.
Here is a patch.
This issue was solved with changeset r40107.
Alexander E., thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.