別のキーワード
種類
- インスタンスメソッド (36)
- ライブラリ (24)
- 特異メソッド (12)
- 文書 (5)
クラス
- Module (12)
-
Rake
:: TaskArguments (36)
キーワード
-
NEWS for Ruby 3
. 0 . 0 (5) - new (12)
-
new
_ scope (12) -
ruby2
_ keywords (12) -
rubygems
/ commands / install _ command (12) -
rubygems
/ commands / search _ command (12)
検索結果
先頭5件
-
Rake
:: TaskArguments # names -> Array (21119.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 # new _ scope(names) -> Rake :: TaskArguments (3243.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 . new(names , values , parent = nil) (3149.0) -
自身を初期化します。
...自身を初期化します。
@param names パラメータの名前のリストを指定します。
@param values パラメータの値のリストを指定します。
@param parent 親となる Rake::TaskArguments を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする......app do
arguments1 = Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
arguments2 = Rake::TaskArguments.new(["name3", "name4"], ["value3", "value4"], arguments1)
p arguments1 # => #<Rake::TaskArguments name1: value1, name2: value2>
p arguments2 # => #<Rake::TaskArguments name3......: value3, name4: value4>
p arguments2["name1"] # => "value1"
p arguments2["name3"] # => "value3"
end
//}... -
NEWS for Ruby 3
. 0 . 0 (66.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...書かれた全ての変更のリストはリンク先を参照してください。
== 言語仕様の変更
* Keyword arguments are now separated from positional arguments.
Code that resulted in deprecation warnings in Ruby 2.7 will now
result in ArgumentError or different behavior. 14......3.0 => [[[1]], {}]
pr.call([1, {a: 1}])
# 2.7 => [[1], {:a=>1}] # and deprecation warning
# 3.0 => a=>1}, {}]
//}
* Arguments forwarding (`...`) now supports leading arguments.
16378
//emlist{
def method_missing(meth, ...)
send(:"do_#{meth}", ...)
end
//}
* Pattern matching (`case/i......tion. 8709
* ENV
* ENV.except has been added, which returns a hash excluding the given keys and their values. 15822
* Windows: Read ENV names and values as UTF-8 encoded Strings 12650
* Encoding
* Added new encoding IBM720. 16233
* Changed default for Encoding.default_external... -
Module
# ruby2 _ keywords(method _ name , . . . ) -> nil (32.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.
...ven 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 fina......l 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 thro... -
rubygems
/ commands / install _ command (12.0) -
Gem パッケージをローカルリポジトリにインストールするためのライブラリです。
...dencies 依存している Gem パッケージをインストールします
--[no-]format-executable Make installed executable names match ruby.
If ruby is ruby18, foo_exec will be
foo_exec18
Local......バックトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Arguments:
GEMNAME インストールする Gem パッケージ名を指定します
Summary:
Gem パッケージをローカル... -
rubygems
/ commands / search _ command (12.0) -
指定された文字列を含む Gem パッケージを全て表示するためのライブラリです。
...gem to search
-d, --[no-]details Display detailed information of gem(s)
--[no-]versions Display only gem names
-a, --all Display all gem versions
Local/Remote Options:
-l, --local 操作をロー......バックトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Arguments:
STRING 検索したい Gem パッケージ名の一部を指定します
Summary:
STRING を含む全ての Gem パッ...