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



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

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

#to_sObject



14
15
16
# File 'lib/byebug/settings/savefile.rb', line 14

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