るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.016秒)
トップページ > バージョン:2.6.0[x] > クエリ:Dir[x] > クラス:Rake::Application[x]

別のキーワード

  1. dir open
  2. dir chdir
  3. dir foreach
  4. dir each_child
  5. rake original_dir

ライブラリ

検索結果

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

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

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

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

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