5件ヒット
[1-5件を表示]
(0.025秒)
種類
- インスタンスメソッド (2)
- 特異メソッド (2)
- クラス (1)
キーワード
- InvocationChain (1)
- append (1)
- new (1)
検索結果
先頭5件
-
Rake
:: InvocationChain :: EmptyInvocationChain # to _ s -> String (72310.0) -
'TOP' という文字列を返します。
'TOP' という文字列を返します。 -
Rake
:: InvocationChain # to _ s -> String (63328.0) -
トップレベルのタスクから自身までの依存関係を文字列として返します。
...での依存関係を文字列として返します。
//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.to_s # => "TOP => task_a"
end
//... -
Rake
:: InvocationChain (18025.0) -
循環したタスクの呼び出しを検出するためのクラスです。
...循環したタスクの呼び出しを検出するためのクラスです。
例:
a = Rake::InvocationChain::EMPTY
b = a.append('task_a').append('task_b')
p b.to_s # => "TOP => task_a => task_b"
a.append('task_a').append('task_b').append('task_a') # => 例外発生... -
Rake
:: InvocationChain . append(task _ name , chain) -> Rake :: InvocationChain (9325.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) (9043.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
//}...