96件ヒット
[1-96件を表示]
(0.049秒)
別のキーワード
クラス
-
Rake
:: TaskArguments (60)
モジュール
- FileUtils (12)
-
Rake
:: TaskManager (24)
キーワード
- [] (12)
-
create
_ rule (12) -
define
_ task (12) - names (12)
-
new
_ scope (12) -
to
_ hash (12) -
with
_ defaults (12)
検索結果
先頭5件
-
FileUtils
# ruby(*args) {|result , status| . . . } (24361.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) -
与えられたパラメータ名に対応する値を返します。
...の名前を指定します。
//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["name2"] # => "value2"
end
//}... -
Rake
:: TaskArguments # names -> Array (3015.0) -
パラメータ名のリストを返します。
...パラメータ名のリストを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
arguments.names # => ["name1", "name2"]
end
//}... -
Rake
:: TaskArguments # to _ hash -> Hash (3015.0) -
パラメータ名と対応する値を格納したハッシュを返します。
...を格納したハッシュを返します。
//emlist[][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"}
end... -
Rake
:: TaskArguments # with _ defaults(defaults) -> Hash (3015.0) -
パラメータにデフォルト値をセットします。
...emlist[][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.wi......th_defaults({ default_key: "default_value"}) # => {:default_key=>"default_value", :name1=>"value1", :name2=>"value2"}
arguments.to_hash # => {:default_key=>"default_value", :name1=>"value1", :name2=>"value2"}
end
//}... -
Rake
:: TaskManager # create _ rule(*args) { . . . } (115.0) -
与えられたパラメータに従ってルールを作成します。
...am 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/Rakefi... -
Rake
:: TaskManager # define _ task(task _ class , *args) { . . . } -> Rake :: Task (115.0) -
タスクを定義します。
...s タスククラスを指定します。
@param args タスクに渡すパラメータを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.define_task(Rake::Task, :t) # => <Rake::Task t => []>
end
//}...