るりまサーチ

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

別のキーワード

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

ライブラリ

クラス

モジュール

検索結果

Rake.original_dir -> String (24320.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 (24320.0)

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

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

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

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

Rake.application -> Rake::Application (118.0)

現在の Rake アプリケーションを返します。

...ke::DefaultLoader:0x31b0b10>},
# @name="rake",
# @options=#<OpenStruct rakelib=["rakelib"], trace_output=#<IO:<STDERR>>>,
# @original_dir="/path/to/dir",
# @pending_imports=[],
# @rakefile="rakefile",
# @rakefiles=["rakefile", "Rakefile", "rakefile.rb", "Rakefile.rb"],
#...