Forum: Ruby-dev [ruby-trunk - Feature #6528][Open] Add Pathname#write and Pathname#binwrite

Posted by niku (niku _) (Guest)
on 2012-06-02 07:38
(Received via mailing list)
Issue #6528 has been reported by niku (niku _).

----------------------------------------
Feature #6528: Add Pathname#write and Pathname#binwrite
https://bugs.ruby-lang.org/issues/6528

Author: niku (niku _)
Status: Open
Priority: Normal
Assignee:
Category: ext
Target version:


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 を実装したパッチを添付します.
Posted by mame (Yusuke Endoh) (Guest)
on 2012-06-12 19:32
(Received via mailing list)
Issue #6528 has been updated by mame (Yusuke Endoh).

Status changed from Open to Assigned
Assignee set to akr (Akira Tanaka)

akr さん、どうですか?

--
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Feature #6528: Add Pathname#write and Pathname#binwrite
https://bugs.ruby-lang.org/issues/6528#change-27193

Author: niku (niku _)
Status: Assigned
Priority: Normal
Assignee: akr (Akira Tanaka)
Category: ext
Target version:


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 を実装したパッチを添付します.
Posted by niku (niku _) (Guest)
on 2012-08-09 12:57
(Received via mailing list)
Issue #6528 has been updated by niku (niku _).


どうでしょうか?
何か引っかかっている所があれば指摘してもらえると嬉しいです.
----------------------------------------
Feature #6528: Add Pathname#write and Pathname#binwrite
https://bugs.ruby-lang.org/issues/6528#change-28742

Author: niku (niku _)
Status: Assigned
Priority: Normal
Assignee: akr (Akira Tanaka)
Category: ext
Target version:


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 を実装したパッチを添付します.
Posted by niku (niku _) (Guest)
on 2012-09-26 10:51
(Received via mailing list)
Issue #6528 has been updated by niku (niku _).


> IO.read と対応する Pathname#read があるので
> IO.write と対応する Pathname#write が欲しいです.
>
> IO.write がない現在は pathname.open('w') { |f| f << str } などと書かなくてはならず,冗長ですが
> IO.write があれば pathname.write(str) と書けて,簡潔です.

のところ、

> IO.read と対応する Pathname#read があるので
> IO.write と対応する Pathname#write が欲しいです.
>
> pathname.write がない現在は pathname.open('w') { |f| f << str } などと書かなくてはならず,冗長ですが
> pathname.write があれば pathname.write(str) と書けて,簡潔です.

の誤りでしたので訂正します。

----------------------------------------
Feature #6528: Add Pathname#write and Pathname#binwrite
https://bugs.ruby-lang.org/issues/6528#change-29746

Author: niku (niku _)
Status: Assigned
Priority: Normal
Assignee: akr (Akira Tanaka)
Category: ext
Target version:


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 を実装したパッチを添付します.
Posted by mame (Yusuke Endoh) (Guest)
on 2012-11-20 15:31
(Received via mailing list)
Issue #6528 has been updated by mame (Yusuke Endoh).

Target version set to next minor


----------------------------------------
Feature #6528: Add Pathname#write and Pathname#binwrite
https://bugs.ruby-lang.org/issues/6528#change-33336

Author: niku (niku _)
Status: Assigned
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 を実装したパッチを添付します.
Posted by akr (Akira Tanaka) (Guest)
on 2013-04-04 16:32
(Received via mailing list)
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 を実装したパッチを添付します.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.