Class: Byebug::AutolistSetting
- Defined in:
- lib/byebug/settings/autolist.rb
Overview
Setting for automatically listing source code on every stop.
Constant Summary collapse
- DEFAULT =
1
Instance Method Summary collapse
- #banner ⇒ Object
-
#initialize ⇒ AutolistSetting
constructor
A new instance of AutolistSetting.
- #value ⇒ Object
- #value=(v) ⇒ Object
Methods inherited from Setting
[], []=, #boolean?, find, #help, help_all, #integer?, settings, #to_s, #to_sym
Constructor Details
#initialize ⇒ AutolistSetting
Returns a new instance of AutolistSetting.
11 12 13 |
# File 'lib/byebug/settings/autolist.rb', line 11 def initialize ListCommand.always_run = DEFAULT end |
Instance Method Details
#banner ⇒ Object
15 16 17 |
# File 'lib/byebug/settings/autolist.rb', line 15 def 'Invoke list command on every stop' end |
#value ⇒ Object
23 24 25 |
# File 'lib/byebug/settings/autolist.rb', line 23 def value ListCommand.always_run == 1 end |
#value=(v) ⇒ Object
19 20 21 |
# File 'lib/byebug/settings/autolist.rb', line 19 def value=(v) ListCommand.always_run = v ? 1 : 0 end |