Ruby 2.2.0 リファレンスマニュアル > ライブラリ一覧 > rakeライブラリ > Rake::Applicationクラス > rakefile

instance method Rake::Application#rakefile

rakefile -> String[permalink][rdoc]

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


# Rakefile での記載例とする

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