Ruby 2.1.0 リファレンスマニュアル > ライブラリ一覧 > rakeライブラリ > Rake::TaskManagerモジュール > last_description=

instance method Rake::TaskManager#last_description=

last_description=(description)[permalink][rdoc]

最新の詳細説明をセットします。


# Rakefile での記載例とする

task default: :test_rake_app1

desc "test1"
task :test_rake_app1 do |task|
  task.application.last_description # => "test2"
  task.application.last_description = "test3"
  task.application.last_description # => "test3"
end

desc "test2"
task :test_rake_app2 do |task|
end