るりまサーチ (Ruby 2.1.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.071秒)
トップページ > クエリ:String[x] > バージョン:2.1.0[x] > クエリ:path[x] > クエリ:original_dir[x]

別のキーワード

  1. _builtin path
  2. pathname to_path
  3. _builtin absolute_path
  4. _builtin to_path
  5. cgi path_separator

ライブラリ

クラス

モジュール

検索結果

Rake.original_dir -> String (54643.0)

Rake アプリケーションを開始したディレクトリを返します。

Rake アプリケーションを開始したディレクトリを返します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app do
Rake.original_dir # => "/path/to/dir"
end
//}

Rake::Application#original_dir -> String (54643.0)

rake コマンドを実行したディレクトリを返します。

rake コマンドを実行したディレクトリを返します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app do
Rake.application.original_dir # => "/path/to/dir"
end
//}