60件ヒット
[1-60件を表示]
(0.042秒)
別のキーワード
クラス
-
Rake
:: Application (24) -
Rake
:: InvocationChain (24) -
Rake
:: TestTask (12)
キーワード
-
add
_ loader (12) - append (12)
- member? (12)
-
ruby
_ opts= (12) -
tty
_ output= (12)
検索結果
先頭5件
-
Rake
:: TestTask # ruby _ opts=(options) (12342.0) -
テスト実行時に Ruby コマンドに渡されるオプションをセットします。
...テスト実行時に Ruby コマンドに渡されるオプションをセットします。
@param options 配列でオプションを指定します。... -
Rake
:: InvocationChain # append(task _ name) -> Rake :: InvocationChain (3127.0) -
与えられたタスク名を追加して新しい Rake::InvocationChain を返します。
...しい Rake::InvocationChain を返します。
@param task_name 追加するタスク名を指定します。
@raise RuntimeError 循環したタスクの呼び出しを検出した場合に発生します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
tas......k :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
:: Application # add _ loader(ext , loader) (3027.0) -
与えられた拡張子で終わるファイル名のファイルをロードするためのローダーを 自身に追加します。
...ルをロードするためのローダーを
自身に追加します。
@param ext 拡張子を指定します。
@param loader ローダーを指定します。
//emlist[例][ruby]{
require "rake/loaders/makefile"
# Rakefile での記載例とする
task default: :test
task :test
makefile =......'SAMPLE_MF'
# Comments
a: a1 a2 a3 a4
EOS
IO.write("sample.mf", makefile)
Rake.application.add_loader("mf", Rake::MakefileLoader.new)
Rake.application.add_import("sample.mf")
Rake::Task.task_defined?("a") # => false
Rake.application.load_imports
Rake::Task.task_defined?("a") # => true
//}... -
Rake
:: Application # tty _ output=(tty _ output _ state) (3021.0) -
TTY に対する出力状態を上書きします。
...ために使用します。
@param tty_output_state 変更後の状態を指定します
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.tty_output? # => false
Rake.application.tty_output = "debug outpu......t" # => "debug output"
Rake.application.tty_output? # => "debug output"
end
//}... -
Rake
:: InvocationChain # member?(task _ name) -> bool (3021.0) -
与えられたタスク名が自身に含まれる場合は真を返します。 そうでない場合は偽を返します。
...を返します。
@param task_name タスク名を指定します。
//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.member?("task_a......") # => true
invocation_chain.member?("task_b") # => false
end
//}...