Module: Kernel
- Defined in:
- lib/irb/driver/tty.rb,
lib/irb/ext/history.rb,
lib/irb/driver/socket.rb
Instance Method Summary collapse
- #clear_history! ⇒ Object
- #history(number_of_entries = IRB::History.max_entries_in_overview) ⇒ Object (also: #h)
- #history!(entry_or_range) ⇒ Object (also: #h!)
Instance Method Details
#clear_history! ⇒ Object
84 85 86 87 |
# File 'lib/irb/ext/history.rb', line 84 def clear_history! IRB::History.clear! true end |
#history(number_of_entries = IRB::History.max_entries_in_overview) ⇒ Object Also known as: h
72 73 74 75 |
# File 'lib/irb/ext/history.rb', line 72 def history(number_of_entries = IRB::History.max_entries_in_overview) IRB::History.history(number_of_entries) IRB::Context::IGNORE_RESULT end |