72件ヒット
[1-72件を表示]
(0.009秒)
クラス
-
Rake
:: TaskArguments (36)
キーワード
- each (12)
- ruby (12)
- rule (12)
-
to
_ hash (12) -
with
_ defaults (12)
検索結果
先頭5件
-
FileUtils
# sh(*cmd) {|result , status| . . . } (18121.0) -
与えられたコマンドを実行します。
...。
@param cmd 引数の解釈に関しては Kernel.#exec を参照してください。
例:
sh %{ls -ltr}
sh 'ls', 'file with spaces'
# check exit status after command runs
sh %{grep pattern file} do |ok, res|
if ! ok
puts "pattern not found (status = #{res.exit... -
Rake
:: TaskArguments # to _ hash -> Hash (6202.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 # each {|key , val| . . . } -> Hash (102.0) -
自身に含まれるパラメータ名とそれに対応する値をブロックパラメータとしてブロックを評価します。
...自身に含まれるパラメータ名とそれに対応する値をブロックパラメータとしてブロックを評価します。
@see Hash#each... -
Rake
:: TaskArguments # with _ defaults(defaults) -> Hash (102.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=>"v......alue1", :name2=>"value2"}
arguments.with_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
//}... -
FileUtils
# ruby(*args) {|result , status| . . . } (8.0) -
与えられた引数で Ruby インタプリタを実行します。
...与えられた引数で Ruby インタプリタを実行します。
@param args Ruby インタプリタに与える引数を指定します。
例:
ruby %{-pe '$_.upcase!' <README}
@see Kernel.#sh... -
Kernel
# rule(*args) {|t| . . . } -> Rake :: Task (8.0) -
自動的に作成するタスクのためのルールを定義します。
...自動的に作成するタスクのためのルールを定義します。
@param args ルールに与えるパラメータを指定します。
例:
rule '.o' => '.c' do |t|
sh %{cc -o #{t.name} #{t.source}}
end...