11件ヒット
[1-11件を表示]
(0.127秒)
ライブラリ
- rake (11)
クラス
-
Rake
:: TaskArguments (11)
検索結果
-
Rake
:: TaskArguments # with _ defaults(defaults) -> Hash (24313.0) -
パラメータにデフォルト値をセットします。
...t[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
arguments.to_hash # => {:name1=>"value1", :name2=>"value2"}
arguments.with_de......faults({ default_key: "default_value"}) # => {:default_key=>"default_value", :name1=>"value1", :name2=>"value2"}
arguments.to_hash # => {:default_key=>"default_value", :name1=>"value1", :name2=>"value2"}
end
//}...