るりまサーチ (Ruby 2.1.0)

最速Rubyリファレンスマニュアル検索!
3件ヒット [1-3件を表示] (0.031秒)

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file open
  4. file path
  5. file chmod

ライブラリ

クラス

モジュール

キーワード

検索結果

FileUtils.#pwd -> String (54304.0)

プロセスのカレントディレクトリを文字列で返します。

プロセスのカレントディレクトリを文字列で返します。

FileUtils.#getwd -> String (9004.0)

プロセスのカレントディレクトリを文字列で返します。

プロセスのカレントディレクトリを文字列で返します。

Pathname#expand_path(default_dir = '.') -> Pathname (85.0)

Pathname.new(File.expand_path(self.to_s, *args)) と同じです。

Pathname.new(File.expand_path(self.to_s, *args)) と同じです。

@param default_dir self が相対パスであれば default_dir を基準に展開されます。

//emlist[例][ruby]{
require "pathname"

path = Pathname("testfile")
Pathname.pwd # => #<Pathname:/path/to>
path.expand_path # => #<Pathname:/path/to/testfile>
path.e...