るりまサーチ (Ruby 2.2.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.040秒)
トップページ > バージョン:2.2.0[x] > クエリ:IO[x] > クエリ:desc[x] > クエリ:last_description[x]

別のキーワード

  1. rake desc
  2. kernel desc
  3. desc rake
  4. desc kernel
  5. desc

ライブラリ

モジュール

検索結果

Rake::TaskManager#last_description -> String (63958.0)

Rakefile 内の最新の詳細説明を追跡するためのメソッドです。

Rakefile 内の最新の詳細説明を追跡するためのメソッドです。

//emlist[][ruby]{
# 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
//}

Rake::TaskManager#last_description=(description) (55594.0)

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

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

//emlist[][ruby]{
# 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 :...