Class: Byebug::AutoprySetting
Overview
Setting for automatically invoking Pry on every stop.
Constant Summary
collapse
- DEFAULT =
0
Instance Method Summary
collapse
Methods inherited from Setting
[], []=, #boolean?, find, #help, help_all, #integer?, settings, #to_s, #to_sym
Constructor Details
11
12
13
|
# File 'lib/byebug/settings/autopry.rb', line 11
def initialize
PryCommand.always_run = DEFAULT
end
|
Instance Method Details
#banner ⇒ Object
15
16
17
|
# File 'lib/byebug/settings/autopry.rb', line 15
def banner
'Invoke Pry on every stop'
end
|
#value ⇒ Object
23
24
25
|
# File 'lib/byebug/settings/autopry.rb', line 23
def value
PryCommand.always_run == 1
end
|
#value=(v) ⇒ Object
19
20
21
|
# File 'lib/byebug/settings/autopry.rb', line 19
def value=(v)
PryCommand.always_run = v ? 1 : 0
end
|