るりまサーチ (Ruby 2.4.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.034秒)
トップページ > クエリ:-[x] > バージョン:2.4.0[x] > クエリ:<<[x] > ライブラリ:readline[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

オブジェクト

検索結果

Readline::HISTORY.<<(string) -> self (54661.0)

ヒストリの最後に string で指定した文字列を追加します。 self を返します。

...する。

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...