Module: Kernel

Defined in:
lib/irb/driver/tty.rb,
lib/irb/ext/history.rb,
lib/irb/driver/socket.rb

Instance Method Summary collapse

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

#history!(entry_or_range) ⇒ Object Also known as: h!



78
79
80
81
# File 'lib/irb/ext/history.rb', line 78

def history!(entry_or_range)
  IRB::History.history!(entry_or_range)
  IRB::Context::IGNORE_RESULT
end