Ruby 1.8.7 Reference Manual > All Libraries > library pathname > module Kernel > Pathname (private)

instance method Kernel#Pathname

Pathname(path) -> Pathname [added by pathname]

文字列 path を元に Pathname オブジェクトを生成します。

Pathname.new(path) と同じです。

[PARAM] path:
文字列、または類似のオブジェクトを与えます。 実際には to_str に反応するオブジェクトなら何でも構いません。