るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.009秒)

別のキーワード

  1. rake rakefile
  2. rake load_rakefile
  3. application rakefile
  4. application load_rakefile
  5. rakefile rake

ライブラリ

クラス

検索結果

Rake::InvocationChain#append(task_name) -> Rake::InvocationChain (18113.0)

与えられたタスク名を追加して新しい Rake::InvocationChain を返します。

...た場合に発生します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app do
invocation_chain= Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.append("task_b") # => LL("task_b", "task_a")
end
//}...

Rake::InvocationChain.append(task_name, chain) -> Rake::InvocationChain (18113.0)

与えられたタスク名を第二引数の Rake::InvocationChain に追加します。

...e::InvocationChain のインスタンスを指定します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app do
chain = Rake::InvocationChain::EMPTY
b = Rake::InvocationChain.append("task_a", chain)
b.to_s # => "TOP => task_a"
end
//}...