Bug #42
Pathname.new の説明
| Status: | Closed | Start date: | 02/13/2008 | |
|---|---|---|---|---|
| Priority: | Low | Due date: | ||
| Assignee: | - | % Done: | 100% |
|
| Category: | doc | |||
| Target version: | - | |||
| reporter: | rock | ruby_version: | 1.8,1.9 |
Description
Pathname.new において,引数が文字列であるという前提で書かれていますが, 実際には Pathname オブジェクトなど to_str できるものなら何でもいいので, それを書いたほうがいいと思います。 とくに,文字列だか Pathname オブジェクトだか分からないものを受け取って, Pathname オブジェクトとして扱うメソッドの中で Pathname.new(引数) と書いてよいということを知るために。 Kernel#Pathname も。
Associated revisions
update description of Pathname#new, Kernel.#Pathname (fix #42)
History
Updated by okkez _ over 1 year ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r4154. Ken, thank you for reporting this issue. Your contribution to Ruby is greatly appreciated. May Ruby be with you.