11件ヒット
[1-11件を表示]
(0.023秒)
オブジェクト
-
Readline
:: HISTORY (11)
検索結果
-
Readline
:: HISTORY . <<(string) -> self (18249.0) -
ヒストリの最後に string で指定した文字列を追加します。 self を返します。
... string で指定した文字列を追加します。
self を返します。
@param string 文字列を指定します。
例: "foo"を追加する。
require "readline"
Readline::HISTORY << "foo"
p Readline::HISTORY[-1] #=> "foo"
例: "foo"、"bar"を追加する。
require "readline......"
Readline::HISTORY << "foo" << "bar"
p Readline::HISTORY[-1] #=> "bar"
p Readline::HISTORY[-2] #=> "foo"
@see Readline::HISTORY.push...