Issue #7378 has been updated by Eregon (Benoit Daloze).

File 0001-ext-pathname-lib-pathname.rb-add-Pathname-write-and-.patch added

Here is a patch.
----------------------------------------
Feature #7378: Adding Pathname#write
https://bugs.ruby-lang.org/issues/7378#change-35386

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


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/