Class: Byebug::HistfileSetting
- Defined in:
- lib/byebug/settings/histfile.rb
Instance Attribute Summary
Attributes inherited from Setting
Instance Method Summary collapse
- #help ⇒ Object
-
#initialize ⇒ HistfileSetting
constructor
A new instance of HistfileSetting.
- #to_s ⇒ Object
Methods inherited from Setting
[], []=, #boolean?, boolean?, exists?, find, format, #integer?, integer?, load, settings, #to_sym
Constructor Details
#initialize ⇒ HistfileSetting
Returns a new instance of HistfileSetting.
3 4 5 |
# File 'lib/byebug/settings/histfile.rb', line 3 def initialize @value = File.("#{ENV['HOME']||'.'}/.byebug_hist") end |
Instance Method Details
#help ⇒ Object
7 8 9 10 |
# File 'lib/byebug/settings/histfile.rb', line 7 def help "Customize file where history is loaded from and saved to. By default, " \ "~/.byebug_hist" end |
#to_s ⇒ Object
12 13 14 |
# File 'lib/byebug/settings/histfile.rb', line 12 def to_s "The command history file is #{value}\n" end |