模块 IRB::History
公共类方法
history_file() 点击切换源码
当 HOME 和 XDG_CONFIG_HOME 不可用时可能为 nil。
# File irb/history.rb, line 20 def history_file if (history_file = IRB.conf[:HISTORY_FILE]) File.expand_path(history_file) else IRB.rc_file("_history") end end
infinite?() 点击切换源码
# File irb/history.rb, line 15 def infinite? save_history.negative? end
save_history() 点击切换源码
IRB.conf[:HISTORY_FILE]
的整数表示。
# File irb/history.rb, line 7 def save_history IRB.conf[:SAVE_HISTORY].to_i end
save_history?() 点击切换源码
# File irb/history.rb, line 11 def save_history? !save_history.zero? end