48件ヒット
[1-48件を表示]
(0.032秒)
クラス
-
Net
:: POP3 (12)
オブジェクト
-
Readline
:: HISTORY (36)
検索結果
先頭4件
-
Readline
:: HISTORY . pop -> String (18221.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... -
Net
:: POP3 . certs -> String|nil (3102.0) -
SSL のパラメータの ca_file (なければ ca_path) を返します。
SSL のパラメータの ca_file (なければ ca_path) を返します。
どちらも設定されていない場合は nil を返します。
@see OpenSSL::SSL::SSLContext#ca_file, OpenSSL::SSL::SSLContext#ca_path -
Readline
:: HISTORY . delete _ at(index) -> String | nil (118.0) -
index で指定したインデックスの内容をヒストリから削除し、その内容を返します。 該当する index の内容がヒストリになければ、 nil を返します。 index に 0 を指定すると Readline::HISTORY.shift と同様に最初の入力内容を削除します。 また、 -1 は最後の入力内容というように、index に負の値を指定することで、 最後から入力内容を取得することもできます。 index が -1 の場合は Readline::HISTORY.pop と同様に動作します。
...に負の値を指定することで、
最後から入力内容を取得することもできます。
index が -1 の場合は Readline::HISTORY.pop と同様に動作します。
@param index 削除対象のヒストリのインデックスを指定します。
@raise NotImplementedError サ... -
Readline
:: HISTORY . shift -> String (108.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...