Class: MiniReadline::NoHistory

Inherits:
Object
  • Object
show all
Defined in:
lib/mini_readline/read_line/no_history.rb

Overview

Support for the edit without history.

Instance Method Summary collapse

Instance Method Details

#append_history(_str) ⇒ Object

Append a string to the history buffer if enabled. NOP



28
29
# File 'lib/mini_readline/read_line/no_history.rb', line 28

def append_history(_str)
end

#get_next_historyObject

Get the next history string. NOP



23
24
25
# File 'lib/mini_readline/read_line/no_history.rb', line 23

def get_next_history
  false
end

#get_previous_historyObject

Get the previous history string. NOP



18
19
20
# File 'lib/mini_readline/read_line/no_history.rb', line 18

def get_previous_history
  false
end

#goto_end_of_historyObject

Go to the end of the history array. NOP



14
15
# File 'lib/mini_readline/read_line/no_history.rb', line 14

def goto_end_of_history
end

#historyObject

Get the history buffer associated with this instance. Empty



32
33
34
# File 'lib/mini_readline/read_line/no_history.rb', line 32

def history
  []
end

#initialize_parms(_options) ⇒ Object

Get the history object ready for the next read line operation. NOP



10
11
# File 'lib/mini_readline/read_line/no_history.rb', line 10

def initialize_parms(_options)
end