Bug #42

Pathname.new の説明

Added by date (Ken DATE) almost 4 years ago. Updated about 1 year ago.

[ruby-reference-manual:818]
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

Revision 4154
Added by okkez almost 2 years ago

update description of Pathname#new, Kernel.#Pathname (fix #42)

History

Updated by okkez (okkez _) almost 2 years 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.

Also available in: Atom PDF