method
load_history
v1_8_6_287 -
Show latest stable
- Class:
IRB::HistorySavingAbility
load_history()public
No documentation available.
# File lib/irb/ext/save-history.rb, line 74
def load_history
hist = IRB.conf[:HISTORY_FILE]
hist = IRB.rc_file("_history") unless hist
if File.exist?(hist)
open(hist) do |f|
f.each {|l| HISTORY << l.chomp}
end
end
end