module IRB::History
Constants
- DEFAULT_ENTRY_LIMIT
Public Class Methods
Source
# File bundled-src/irb-1.16.0/lib/irb/history.rb, line 24 def history_file if (history_file = IRB.conf[:HISTORY_FILE]) File.expand_path(history_file) else IRB.rc_file("_history") end end
Might be nil when HOME and XDG_CONFIG_HOME are not available.
Source
# File bundled-src/irb-1.16.0/lib/irb/history.rb, line 19 def infinite? save_history.negative? end
Source
# File bundled-src/irb-1.16.0/lib/irb/history.rb, line 9 def save_history return 0 if IRB.conf[:SAVE_HISTORY] == false return DEFAULT_ENTRY_LIMIT if IRB.conf[:SAVE_HISTORY] == true IRB.conf[:SAVE_HISTORY].to_i end
Integer representation of IRB.conf[:HISTORY_FILE].
Source
# File bundled-src/irb-1.16.0/lib/irb/history.rb, line 15 def save_history? !save_history.zero? end