24件ヒット
[1-24件を表示]
(0.149秒)
クラス
- Module (12)
-
Rake
:: InvocationChain (12)
検索結果
先頭2件
-
Rake
:: InvocationChain # append(task _ name) -> Rake :: InvocationChain (21214.0) -
与えられたタスク名を追加して新しい Rake::InvocationChain を返します。
...InvocationChain を返します。
@param task_name 追加するタスク名を指定します。
@raise RuntimeError 循環したタスクの呼び出しを検出した場合に発生します。
//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
//}... -
Module
# append _ features(module _ or _ class) -> self (12232.0) -
モジュール(あるいはクラス)に self の機能を追加します。
... Ruby で書くと以下のように定義できます。
//emlist[例][ruby]{
def include(*modules)
modules.reverse_each do |mod|
# append_features や included はプライベートメソッドなので
# 直接 mod.append_features(self) などとは書けない
mod.__send__(:append......_features, self)
mod.__send__(:included, self)
end
end
//}
@see Module#included...