Class: Byebug::HistfileSetting

Inherits:
Setting
  • Object
show all
Defined in:
lib/byebug/settings/histfile.rb

Constant Summary collapse

DEFAULT =
File.expand_path("#{ENV['HOME'] || '.'}/.byebug_hist")

Instance Attribute Summary

Attributes inherited from Setting

#value

Instance Method Summary collapse

Methods inherited from Setting

[], []=, boolean?, #boolean?, exists?, find, format, #initialize, integer?, #integer?, load, settings, #to_sym

Constructor Details

This class inherits a constructor from Byebug::Setting

Instance Method Details

#helpObject



5
6
7
8
# File 'lib/byebug/settings/histfile.rb', line 5

def help
  "Customize file where history is loaded from and saved to. By default, " \
  "~/.byebug_hist"
end

#to_sObject



10
11
12
# File 'lib/byebug/settings/histfile.rb', line 10

def to_s
  "The command history file is #{value}\n"
end