Class: Byebug::HistsizeSetting

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

Constant Summary collapse

DEFAULT =
256

Instance Attribute Summary

Attributes inherited from Setting

#value

Instance Method Summary collapse

Methods inherited from Setting

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

Constructor Details

#initializeHistsizeSetting

Returns a new instance of HistsizeSetting.



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

def initialize
  @value = DEFAULT
end

Instance Method Details

#helpObject



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

def help
  "Customize maximum number of commands that can be stored in byebug's " \
  "history record. By default, #{DEFAULT}"
end

#to_sObject



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

def to_s
  "Maximum size of byebug's command history is #{value}"
end