Project

General

Profile

Actions

Feature #6528

closed

Feature #7378: Adding Pathname#write

Add Pathname#write and Pathname#binwrite

Added by niku (niku _) almost 12 years ago. Updated almost 11 years ago.

Status:
Closed
Target version:
[ruby-dev:45700]

Description

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 を実装したパッチを添付します.


Files

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0