From: "akr (Akira Tanaka)" Date: 2013-04-04T23:32:01+09:00 Subject: [ruby-dev:47221] [ruby-trunk - Feature #6528][Closed] Add Pathname#write and Pathname#binwrite Issue #6528 has been updated by akr (Akira Tanaka). Status changed from Assigned to Closed Parent task set to #7378 ---------------------------------------- Feature #6528: Add Pathname#write and Pathname#binwrite https://bugs.ruby-lang.org/issues/6528#change-38220 Author: niku (niku _) Status: Closed Priority: Normal Assignee: akr (Akira Tanaka) Category: ext Target version: next minor IO.read と対応する Pathname#read があるので IO.write と対応する Pathname#write が欲しいです. IO.write がない現在は pathname.open('w') { |f| f << str } などと書かなくてはならず,冗長ですが IO.write があれば pathname.write(str) と書けて,簡潔です. Pathname#write と Pathname#binwrite を実装したパッチを添付します. -- http://bugs.ruby-lang.org/