Ruby 2.1.0 リファレンスマニュアル > ライブラリ一覧 > rakeライブラリ > Rake::TaskManagerモジュール > last_comment
last_description -> String
[permalink][rdoc]last_comment -> String
Rakefile 内の最新の詳細説明を追跡するためのメソッドです。
# Rakefile での記載例とする
task default: :test_rake_app1
desc "test1"
task :test_rake_app1 do |task|
p task.application.last_description # => "test2"
end
desc "test2"
task :test_rake_app2 do |task|
end