ライブラリ
- ビルトイン (11)
- irb (11)
- readline (33)
-
rubygems
/ specification (55)
クラス
-
Gem
:: Specification (55)
モジュール
- IRB (11)
オブジェクト
- ENV (11)
-
Readline
:: HISTORY (33)
キーワード
-
array
_ attribute (11) -
array
_ attributes (11) -
delete
_ at (11) -
irb
_ at _ exit (11) - pop (11)
-
required
_ attribute (11) -
required
_ attribute? (11) -
required
_ attributes (11) - shift (11)
-
values
_ at (11)
検索結果
先頭5件
-
ENV
. values _ at(*key) -> [String] (6108.0) -
引数で指定されたキー(環境変数名)に対応する値の配列を返します。存在 しないキーに対しては nil が対応します。
...返します。存在
しないキーに対しては nil が対応します。
例:
ENV.update({'FOO' => 'foo', 'BAR' => 'bar'})
p ENV.values_at(*%w(FOO BAR BAZ)) # => ["foo", "bar", nil]
@param key 環境変数名を指定します。文字列で指定します。
文字列以... -
Readline
:: HISTORY . delete _ at(index) -> String | nil (6108.0) -
index で指定したインデックスの内容をヒストリから削除し、その内容を返します。 該当する index の内容がヒストリになければ、 nil を返します。 index に 0 を指定すると Readline::HISTORY.shift と同様に最初の入力内容を削除します。 また、 -1 は最後の入力内容というように、index に負の値を指定することで、 最後から入力内容を取得することもできます。 index が -1 の場合は Readline::HISTORY.pop と同様に動作します。
...のヒストリのインデックスを指定します。
@raise NotImplementedError サポートしていない環境で発生します。
例:
require "readline"
Readline::HISTORY.push("foo", "bar", "baz")
Readline::HISTORY.delete_at(1)
p Readline::HISTORY.to_a #=> ["foo", "baz"]... -
IRB
. irb _ at _ exit -> () (6102.0) -
at_exit で登録された処理を実行します。
at_exit で登録された処理を実行します。
ユーザが直接使用するものではありません。 -
Gem
:: Specification . array _ attribute(name) -> () (6101.0) -
Gem::Specification.attribute と同じですが、値を配列に格納するアクセサを作ります。
Gem::Specification.attribute と同じですが、値を配列に格納するアクセサを作ります。
@param name 属性の名前を指定します。
@see Gem::Specification.attribute -
Gem
:: Specification . array _ attributes -> Array (6101.0) -
@@array_attributes の複製を返します。
...@@array_attributes の複製を返します。
@see Object#dup... -
Gem
:: Specification . required _ attribute(name , default = nil) -> () (6101.0) -
必須の属性を作成します。
必須の属性を作成します。
@param name 属性名を指定します。
@param default デフォルト値を指定します。
@see Gem::Specification.attribute -
Gem
:: Specification . required _ attribute?(name) -> bool (6101.0) -
必須属性であれば真を返します。
必須属性であれば真を返します。
@param name 属性名を指定します。 -
Gem
:: Specification . required _ attributes -> Array (6101.0) -
必須属性のリストを返します。
必須属性のリストを返します。 -
Readline
:: HISTORY . pop -> String (7.0) -
ヒストリの最後の内容を取り出します。 最後の内容は、ヒストリから取り除かれます。
...で発生します。
例:
require "readline"
Readline::HISTORY.push("foo", "bar", "baz")
p Readline::HISTORY.pop #=> "baz"
p Readline::HISTORY.pop #=> "bar"
p Readline::HISTORY.pop #=> "foo"
@see Readline::HISTORY.push、Readline::HISTORY.shift、
Readline::HISTORY.delete_at... -
Readline
:: HISTORY . shift -> String (7.0) -
ヒストリの最初の内容を取り出します。 最初の内容は、ヒストリから取り除かれます。
...発生します。
例:
require "readline"
Readline::HISTORY.push("foo", "bar", "baz")
p Readline::HISTORY.shift #=> "foo"
p Readline::HISTORY.shift #=> "bar"
p Readline::HISTORY.shift #=> "baz"
@see Readline::HISTORY.push、Readline::HISTORY.pop、
Readline::HISTORY.delete_at...