Class | Pry::History |
In: |
lib/pry/history.rb
|
Parent: | Object |
The History class is responsible for maintaining the user‘s input history, both internally and within Readline.
clearer | [RW] | |
loader | [RW] | |
original_lines | [R] | @return [Fixnum] Number of lines in history when Pry first loaded. |
pusher | [RW] | |
saver | [RW] |
Clear all history. Anything the user entered before this point won‘t be saved, but anything they put in afterwards will still be appended to the history file on exit.
Add a line to the input history, ignoring blank and duplicate lines. @param [String] line @return [String] The same line that was passed in