Class: Byebug::SavefileSetting

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

Overview

Setting to customize the file where byebug’s history is saved.

Constant Summary collapse

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

Instance Attribute Summary

Attributes inherited from Setting

#value

Instance Method Summary collapse

Methods inherited from Setting

[], []=, #boolean?, find, #help, help_all, #initialize, #integer?, settings, #to_sym

Constructor Details

This class inherits a constructor from Byebug::Setting

Instance Method Details



12
13
14
# File 'lib/byebug/settings/savefile.rb', line 12

def banner
  "File where settings are saved to. Default: ~/.byebug_save"
end

#to_sObject



16
17
18
# File 'lib/byebug/settings/savefile.rb', line 16

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