るりまサーチ

最速Rubyリファレンスマニュアル検索!
102件ヒット [1-100件を表示] (0.164秒)

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. t61string new
  4. matrix t
  5. fiddle align_size_t

キーワード

検索結果

<< 1 2 > >>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

...します。

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

//emlist[][ruby]{
# Rakefile での記載例とする

t
ask default: :test_rake_app
t
ask :test_rake_app do
arguments
= Rake::TaskArguments.new(["name1", "name2"], ["va...
...ents.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#to_hash -> Hash (9119.0)

パラメータ名と対応する値を格納したハッシュを返します。

...納したハッシュを返します。

//emlist[][ruby]{
# Rakefile での記載例とする

t
ask default: :test_rake_app
t
ask :test_rake_app do
arguments
= Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
arguments
.to_hash # => {:name1=>"value1", :name2=>"value2"}
end

//}...

絞り込み条件を変える

Rake::TaskArguments#new_scope(names) -> Rake::TaskArguments (6237.0)

与えられたパラメータ名のリストを使用して新しい Rake::TaskArguments を作成します。

...使用して新しい Rake::TaskArguments を作成します。

@param names パラメータ名のリストを指定します。

//emlist[][ruby]{
# Rakefile での記載例とする

t
ask default: :test_rake_app
t
ask :test_rake_app do
arguments
= Rake::TaskArguments.new(["name1", "name2"], ["va...
...lue1", "value2"])
new_arguments = arguments.new_scope(["name3", "name4"])
p new_arguments # => #<Rake::TaskArguments >
p new_arguments.names # => ["name3", "name4"]
end

//}...

Rake::TaskArguments#[](key) -> object (6125.0)

与えられたパラメータ名に対応する値を返します。

...の名前を指定します。

//emlist[][ruby]{
# Rakefile での記載例とする

t
ask default: :test_rake_app
t
ask :test_rake_app do
arguments
= Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
arguments
["name1"] # => "value1"
arguments
["name2"] # => "value2"
end

//}...

Rake::TaskArguments#names -> Array (6019.0)

パラメータ名のリストを返します。

...パラメータ名のリストを返します。

//emlist[][ruby]{
# Rakefile での記載例とする

t
ask default: :test_rake_app
t
ask :test_rake_app do
arguments
= Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
arguments
.names # => ["name1", "name2"]
end

//}...

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

... 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, t...
...ent 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 meth...
...od to
other methods.

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

T
his method will probably be removed at some point, as it exists only
for backwards compatibility. As it does not exist in Ruby ve...
<< 1 2 > >>