Ruby 4.0 リファレンスマニュアル

instance method Rake::TaskManager#last_comment

last_description -> StringRuby 1.9.3 から[permalink][rdoc][edit]
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