module IRB::History - irb: Ruby Standard Library Documentation

# module IRB::History

### Public Class Methods

history_file() click to toggle source

Might be nil when HOME and XDG_CONFIG_HOME are not available.

    # 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?() click to toggle source

    # File irb/history.rb, line 15
    def infinite?
      save_history.negative?
    end

save_history() click to toggle source

Integer representation of `IRB.conf[:HISTORY_FILE]`.

    # File irb/history.rb, line 7
    def save_history
      IRB.conf[:SAVE_HISTORY].to_i
    end

save_history?() click to toggle source

    # File irb/history.rb, line 11
    def save_history?
      !save_history.zero?
    end