487件ヒット
[1-100件を表示]
(0.061秒)
別のキーワード
ライブラリ
- ビルトイン (182)
- getoptlong (12)
- rake (132)
-
rubygems
/ command (24) -
rubygems
/ commands / build _ command (12) -
rubygems
/ commands / dependency _ command (12)
クラス
- Data (12)
-
Gem
:: Command (24) -
Gem
:: Commands :: BuildCommand (12) -
Gem
:: Commands :: DependencyCommand (12) - GetoptLong (12)
- Module (12)
- Object (30)
- Proc (30)
-
Rake
:: TaskArguments (120) - String (45)
- Struct (16)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - << (9)
-
EMPTY
_ TASK _ ARGS (12) -
NEWS for Ruby 3
. 0 . 0 (5) - Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- [] (22)
- concat (18)
- curry (24)
-
defaults
_ str (12) - each (12)
- inspect (12)
- lambda (18)
- lookup (12)
- names (12)
- new (30)
-
new
_ scope (12) - prepend (18)
- proc (19)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby2
_ keywords (18) - rubygems (12)
-
rubygems
/ commands / environment _ command (12) -
rubygems
/ commands / help _ command (12) -
rubygems
/ commands / lock _ command (12) - then (14)
-
to
_ hash (12) -
to
_ s (12) -
with
_ defaults (12) -
yield
_ self (16) - クラス/メソッドの定義 (12)
検索結果
先頭5件
-
Gem
:: Command # arguments -> String (18201.0) -
このメソッドはサブクラスで再定義されます。 コマンドが取る引数の説明を表示するために使用します。
このメソッドはサブクラスで再定義されます。
コマンドが取る引数の説明を表示するために使用します。
サブクラスで実装する場合は、一つの引数につき一行で、左揃えの文字列を返すようにしてください。 -
Gem
:: Commands :: BuildCommand # arguments -> String (18201.0) -
引数の説明を表す文字列を返します。
引数の説明を表す文字列を返します。 -
Gem
:: Commands :: DependencyCommand # arguments -> String (18201.0) -
引数の説明を表す文字列を返します。
引数の説明を表す文字列を返します。 -
Rake
:: TaskArguments # new _ scope(names) -> Rake :: TaskArguments (3236.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"], ["value......1", "value2"])
new_arguments = arguments.new_scope(["name3", "name4"])
p new_arguments # => #<Rake::TaskArguments >
p new_arguments.names # => ["name3", "name4"]
end
//}... -
Rake
:: TaskArguments # with _ defaults(defaults) -> Hash (3124.0) -
パラメータにデフォルト値をセットします。
..._app do
arguments = Rake::TaskArguments.new(["name1", "name2"], ["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 # => {:default_key=>"default_value", :name1=>"value1", :name2=>"value2"}
end
//}... -
Rake
:: TaskArguments # [](key) -> object (3118.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 (3112.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 (3112.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 (3100.0) -
自身に含まれるパラメータ名とそれに対応する値をブロックパラメータとしてブロックを評価します。
自身に含まれるパラメータ名とそれに対応する値をブロックパラメータとしてブロックを評価します。
@see Hash#each