るりまサーチ

最速Rubyリファレンスマニュアル検索!
6件ヒット [1-6件を表示] (0.010秒)
トップページ > クラス:File[x] > クエリ:to_path[x]

関連するキーワード

  1. pathname

検索結果

File#to_path -> String (15102)

オープン時に使用したパスを文字列で返します。

...オープン時に使用したパスを文字列で返します。

File
.new("testfile").path #=> "testfile"
File
.new("/tmp/../tmp/xxx", "w").path #=> "/tmp/../tmp/xxx"...

File.path(filename) -> String (23)

指定されたファイル名を文字列で返します。filename が文字列でない場合は、to_path メソッドを呼びます。

...指定されたファイル名を文字列で返します。filename が文字列でない場合は、to_path メソッドを呼びます。

@param filename ファイル名を表す文字列か to_path メソッドが定義されたオブジェクトを指定します。...

File#path -> String (2)

オープン時に使用したパスを文字列で返します。

...オープン時に使用したパスを文字列で返します。

File
.new("testfile").path #=> "testfile"
File
.new("/tmp/../tmp/xxx", "w").path #=> "/tmp/../tmp/xxx"...