ライブラリ
- ビルトイン (3)
- rake (2)
-
rubygems
/ commands / build _ command (1)
クラス
-
Gem
:: Commands :: BuildCommand (1) - Module (1)
- Object (2)
-
Rake
:: TaskArguments (2)
キーワード
- [] (1)
- lookup (1)
-
ruby2
_ keywords (1) - then (1)
-
yield
_ self (1)
検索結果
先頭5件
-
Gem
:: Commands :: BuildCommand # arguments -> String (108907.0) -
引数の説明を表す文字列を返します。
引数の説明を表す文字列を返します。 -
Module
# ruby2 _ keywords(method _ name , . . . ) -> nil (36952.0) -
For the given method names, marks the method as passing keywords through a normal argument splat. This should only be called on methods that accept an argument splat (`*args`) but not explicit keywords or a keyword splat. It marks the method such that if the method is called with keyword arguments, the final hash argument is marked with a special flag such that if it is the final element of a normal argument splat to another method call, and that method call does not include explicit keywords or a keyword splat, the final element is interpreted as keywords. In other words, keywords will be passed through the method to other methods.
For the given method names, marks the method as passing keywords through
a normal argument splat. This should only be called on methods that
accept an argument splat (`*args`) but not explicit keywords or a
keyword splat. It marks the method such that if the method is called
with keyword argument... -
Object
# then -> Enumerator (27622.0) -
self を引数としてブロックを評価し、ブロックの結果を返します。
self を引数としてブロックを評価し、ブロックの結果を返します。
//emlist[例][ruby]{
3.next.then {|x| x**x }.to_s # => "256"
"my string".yield_self {|s| s.upcase } # => "MY STRING"
//}
値をメソッドチェインのパイプラインに次々と渡すのは良い使い方です。
//emlist[メソッドチェインのパイプライン][ruby]{
require 'open-uri'
require 'json'
construct_url(arguments).
... -
Rake
:: TaskArguments # lookup(name) -> object (27604.0) -
与えられた名前に対応する値を返します。
与えられた名前に対応する値を返します。
@param name パラメータ名を指定します。 -
Rake
:: TaskArguments # [](key) -> object (27358.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["name2"] # => "value2"
end
/... -
Object
# yield _ self -> Enumerator (18622.0) -
self を引数としてブロックを評価し、ブロックの結果を返します。
self を引数としてブロックを評価し、ブロックの結果を返します。
//emlist[例][ruby]{
3.next.then {|x| x**x }.to_s # => "256"
"my string".yield_self {|s| s.upcase } # => "MY STRING"
//}
値をメソッドチェインのパイプラインに次々と渡すのは良い使い方です。
//emlist[メソッドチェインのパイプライン][ruby]{
require 'open-uri'
require 'json'
construct_url(arguments).
...