るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.009秒)
トップページ > 種類:特異メソッド[x] > バージョン:2.3.0[x] > ライブラリ:rake[x] > クラス:Rake::InvocationChain[x]

キーワード

検索結果

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

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

... Rake::InvocationChain に追加します。

@param task_name タスク名を指定します。

@param chain 既に存在する Rake::InvocationChain のインスタンスを指定します。

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

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

Rake::InvocationChain.new(task_name, tail) (13.0)

与えられたタスク名と一つ前の Rake::InvocationChain を用いて自身を初期化します。

...前の Rake::InvocationChain を用いて自身を初期化します。

@param task_name タスク名を指定します。

@param tail 一つ前の Rake::InvocationChain を指定します。

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

task default: :test_rake_app
task :test_rake_app d...
...o
tail = Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
tail.to_s # => "TOP => task_a"
b = Rake::InvocationChain.new("task_b", tail)
b.to_s # => "TOP => task_a => task_b"
end
//}...