Class | Readline::History |
In: |
lib/readline.rb
|
Parent: | Object |
The History class encapsulates a history of all commands entered by users at the prompt, providing an interface for inspection and retrieval of all commands.
Returns the command that was entered at the specified index in the history buffer.
Raises an IndexError if the entry is nil.
Sets the command str at the given index in the history buffer.
You can only replace an existing entry. Attempting to create a new entry will result in an IndexError.