るりまサーチ

最速Rubyリファレンスマニュアル検索!
421件ヒット [1-100件を表示] (0.153秒)
トップページ > クエリ:-[x] > クエリ:r[x] > クエリ:d[x] > クエリ:arguments[x]

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. bigdecimal to_r
  5. fileutils cp_r

モジュール

検索結果

<< 1 2 3 ... > >>

Gem::Command#arguments -> String (27301.0)

このメソッドはサブクラスで再定義されます。 コマンドが取る引数の説明を表示するために使用します。

このメソッドはサブクラスで再定義されます。
コマンドが取る引数の説明を表示するために使用します。

サブクラスで実装する場合は、一つの引数につき一行で、左揃えの文字列を返すようにしてください。

Gem::Commands::BuildCommand#arguments -> String (27301.0)

引数の説明を表す文字列を返します。

引数の説明を表す文字列を返します。

Gem::Commands::DependencyCommand#arguments -> String (27301.0)

引数の説明を表す文字列を返します。

引数の説明を表す文字列を返します。

String#prepend(*arguments) -> String (12407.0)

複数の文字列を先頭に破壊的に追加します。

...列を先頭に破壊的に追加します。

@param arguments 追加したい文字列を指定します。

//emlist[例][ruby]{
a = "!!!"
a.prepend # => "!!!"
a # => "!!!"

a = "!!!"
a.prepend "hello ", "world" # => "hello world!!!"
a # => "hello world!!!"
//}...

Rake::TaskArguments#with_defaults(defaults) -> Hash (12324.0)

パラメータにデフォルト値をセットします。

...ットします。

@param defaults デフォルト値として使用するキーと値を格納したハッシュを指定します。

//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
.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
//}...

絞り込み条件を変える

Module#ruby2_keywords(method_name, ...) -> nil (12316.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.

...or 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,...
...ash 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...
...d to
other methods.

This should only be used for methods that delegate keywords to another
method, and only for backwards compatibility with Ruby versions before
2.7.

This method will probably be removed at some point, as it exists only
for backwards compatibility. As it does not exist in Ruby ver...

Proc#ruby2_keywords -> proc (12316.0)

Marks the proc as passing keywords through a normal argument splat. This should only be called on procs that accept an argument splat (`*args`) but not explicit keywords or a keyword splat. It marks the proc such that if the proc 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 proc to other methods.

...Marks the proc as passing keywords through a normal argument splat. This
should only be called on procs that accept an argument splat (`*args`)
but not explicit keywords or a keyword splat. It marks the proc such
that if the proc is called with keyword arguments, the final hash
argument is marked w...
...ormal 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 proc to other methods.

This should only be used for procs that delegate keyword...
...ards compatibility. As it does not exist in Ruby versions
before 2.7, check that the proc responds to this method before calling
it. Also, be aware that if this method is removed, the behavior of the
proc will change so that it does not pass through keywords.

//emlist[][ruby]{
module Mod
foo = ->...

Gem::Command#defaults_str -> String (12306.0)

このメソッドはサブクラスで再定義されます。 コマンドのオプションで使用するデフォルト値を表示するために使用する文字列を返します。

...このメソッドはサブクラスで再定義されます。
コマンドのオプションで使用するデフォルト値を表示するために使用する文字列を返します。

@see Gem::Command#arguments...

String#prepend(other_str) -> String (12302.0)

文字列 other_str を先頭に破壊的に追加します。

...文字列 other_str を先頭に破壊的に追加します。

@param other_str 追加したい文字列を指定します。

//emlist[例][ruby]{
a = "world"
a.prepend("hello ") # => "hello world"
a # => "hello world"
//}...

rubygems/commands/install_command (12210.0)

Gem パッケージをローカルリポジトリにインストールするためのライブラリです。

...Usage: gem install GEMNAME [GEMNAME ...] [options] -- --build-flags [options]
Options:
-
-platform PLATFORM 指定されたプラットフォームの Gem パッケージをインストールします
-
v, --version VERSION 指定されたバージョンの Ge...
...ます
Install/Update Options:
-
i, --install-dir DIR Gem パッケージのインストー先を指定します
-
n, --bindir DIR Gem パッケージに含まれるバイナリファイルの配置先を指定します
-
d, --[no-]rdoc...
...ます
-
-config-file FILE 指定された設定ファイルを使用します
-
-backtrace バックトレースを表示します
-
-debug Ruby 自体のデバッグオプションを有効にします
Arguments
:...

絞り込み条件を変える

rubygems/commands/dependency_command (12126.0)

インストールされている Gem パッケージの依存関係を表示するためのライブラリです。

...sage: gem dependency GEMNAME [options]
Options:
-
v, --version VERSION 指定したバージョンの依存関係を表示します
-
-platform PLATFORM 指定したプラットフォームの依存関係を表示します
-
R, --[no-]reverse-dependencies...
...表示します
-
p, --pipe Pipe Format (name --version ver)
Local/Remote Options:
-
l, --local 操作をローカルに限定します
-
r, --remote 操作をリモートに限定します
-
b, --both...
...ます
-
-config-file FILE 指定された設定ファイルを使用します
-
-backtrace バックトレースを表示します
-
-debug Ruby 自体のデバッグオプションを有効にします
Arguments
:...
<< 1 2 3 ... > >>