Class: Byebug::HistsizeSetting
- Defined in:
- lib/byebug/settings/histsize.rb
Constant Summary collapse
- DEFAULT =
256
Instance Attribute Summary
Attributes inherited from Setting
Instance Method Summary collapse
- #help ⇒ Object
-
#initialize ⇒ HistsizeSetting
constructor
A new instance of HistsizeSetting.
- #to_s ⇒ Object
Methods inherited from Setting
[], []=, #boolean?, boolean?, exists?, find, format, #integer?, integer?, load, settings, #to_sym
Constructor Details
#initialize ⇒ HistsizeSetting
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
#help ⇒ Object
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_s ⇒ Object
14 15 16 |
# File 'lib/byebug/settings/histsize.rb', line 14 def to_s "Maximum size of byebug's command history is #{value}" end |