72件ヒット
[1-72件を表示]
(0.052秒)
別のキーワード
クラス
-
Rake
:: TaskArguments (36)
モジュール
- FileUtils (12)
-
Rake
:: TaskManager (24)
キーワード
- [] (12)
-
create
_ rule (12) -
define
_ task (12) -
new
_ scope (12) -
with
_ defaults (12)
検索結果
先頭5件
-
FileUtils
# ruby(*args) {|result , status| . . . } (18244.0) -
与えられた引数で Ruby インタプリタを実行します。
...与えられた引数で Ruby インタプリタを実行します。
@param args Ruby インタプリタに与える引数を指定します。
例:
ruby %{-pe '$_.upcase!' <README}
@see Kernel.#sh... -
Rake
:: TaskArguments # new _ scope(names) -> Rake :: TaskArguments (3115.0) -
与えられたパラメータ名のリストを使用して新しい Rake::TaskArguments を作成します。
...トを使用して新しい Rake::TaskArguments を作成します。
@param names パラメータ名のリストを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "name2"]......, ["value1", "value2"])
new_arguments = arguments.new_scope(["name3", "name4"])
p new_arguments # => #<Rake::TaskArguments >
p new_arguments.names # => ["name3", "name4"]
end
//}... -
Rake
:: TaskArguments # [](key) -> object (3015.0) -
与えられたパラメータ名に対応する値を返します。
...す。
@param key パラメータの名前を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
arguments["name1"] # => "value1"
arguments[... -
Rake
:: TaskArguments # with _ defaults(defaults) -> Hash (3015.0) -
パラメータにデフォルト値をセットします。
...をセットします。
@param defaults デフォルト値として使用するキーと値を格納したハッシュを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "n......ame2"], ["value1", "value2"])
arguments.to_hash # => {:name1=>"value1", :name2=>"value2"}
arguments.with_defaults({ default_key: "default_value"}) # => {:default_key=>"default_value", :name1=>"value1", :name2=>"value2"}
arguments.to_hash... -
Rake
:: TaskManager # define _ task(task _ class , *args) { . . . } -> Rake :: Task (121.0) -
タスクを定義します。
...。
@param task_class タスククラスを指定します。
@param args タスクに渡すパラメータを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.define_task(Rake::Task, :t) # => <Rake::Ta... -
Rake
:: TaskManager # create _ rule(*args) { . . . } (115.0) -
与えられたパラメータに従ってルールを作成します。
...ラメータに従ってルールを作成します。
@param args ルールに与えるパラメータを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
rule = Rake.application.create_rule '.txt' => '.md' do |t|
"......#{t}"
end
p rule # => 0x0000558dd2e32d20 /path/to/Rakefile:5>
end
//}...