るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
3件ヒット [1-3件を表示] (0.128秒)
トップページ > 種類:インスタンスメソッド[x] > バージョン:2.5.0[x] > クエリ:String[x] > クラス:Rake::Application[x]

別のキーワード

  1. string []=
  2. string []
  3. string slice
  4. string slice!
  5. string gsub

ライブラリ

キーワード

検索結果

Rake::Application#name -> String (310.0)

アプリケーションの名前を返します。通常は 'rake' という名前を返します。

アプリケーションの名前を返します。通常は 'rake' という名前を返します。

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

task default: :test_rake_app
task :test_rake_app do
Rake.application.name # => "rake"
end
//}

Rake::Application#original_dir -> String (310.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#rakefile -> String (310.0)

実際に使用されている Rakefile の名前を返します。

実際に使用されている Rakefile の名前を返します。

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

task default: :test_rake_app
task :test_rake_app do
Rake.application.rakefile # => "Rakefile"
end
//}