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
----------------------------------------
Feature #7378: Adding Pathname#write
https://bugs.ruby-lang.org/issues/7378#change-33023

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


There should be a variant of File.write for Pathname.

I will provide a patch if this is acceptable.

(Please see my other Pathname related tickets too: #7360 #7361 #7362 #7363 )


-- 
http://bugs.ruby-lang.org/