Class: Byebug::AutoirbSetting
- Defined in:
- lib/byebug/settings/autoirb.rb
Overview
Setting for automatically invoking IRB on every stop.
Constant Summary collapse
- DEFAULT =
0
Instance Method Summary collapse
- #banner ⇒ Object
-
#initialize ⇒ AutoirbSetting
constructor
A new instance of AutoirbSetting.
- #value ⇒ Object
- #value=(v) ⇒ Object
Methods inherited from Setting
[], []=, #boolean?, boolean?, exists?, find, #help, help, help_all, #integer?, integer?, load, settings, #to_s, #to_sym
Constructor Details
#initialize ⇒ AutoirbSetting
Returns a new instance of AutoirbSetting.
8 9 10 |
# File 'lib/byebug/settings/autoirb.rb', line 8 def initialize IrbCommand.always_run = DEFAULT end |
Instance Method Details
#banner ⇒ Object
12 13 14 |
# File 'lib/byebug/settings/autoirb.rb', line 12 def 'Invoke IRB on every stop' end |
#value ⇒ Object
20 21 22 |
# File 'lib/byebug/settings/autoirb.rb', line 20 def value IrbCommand.always_run == 1 end |
#value=(v) ⇒ Object
16 17 18 |
# File 'lib/byebug/settings/autoirb.rb', line 16 def value=(v) IrbCommand.always_run = v ? 1 : 0 end |