1件ヒット
[1-1件を表示]
(0.057秒)
ライブラリ
- readline (1)
検索結果
-
Readline
:: HISTORY . push(*string) -> self (721.0) -
ヒストリの最後に string で指定した文字列を追加します。複数の string を指定できます。 self を返します。
...る。
require "readline"
Readline::HISTORY.push("foo")
p Readline::HISTORY[-1] #=> "foo"
例: "foo"、"bar"を追加する。
require "readline"
Readline::HISTORY.push("foo", "bar")
p Readline::HISTORY[-1] #=> "bar"
p Readline::HISTORY[-2] #=> "foo"
@see Readline::HISTORY.<<...