るりまサーチ (Ruby 2.1.0)

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

別のキーワード

  1. _builtin to_a
  2. matrix to_a
  3. to_a
  4. argf.class to_a
  5. rexml/document to_a

ライブラリ

クラス

モジュール

検索結果

Rake.original_dir -> String (72925.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 (72925.0)

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

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

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

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