Class: Byebug::AutolistSetting
Instance Method Summary
collapse
Methods inherited from Setting
[], []=, #boolean?, boolean?, exists?, find, format, #integer?, integer?, load, settings, #to_s, #to_sym
Constructor Details
Returns a new instance of AutolistSetting.
3
4
5
|
# File 'lib/byebug/settings/autolist.rb', line 3
def initialize
ListCommand.always_run = 1
end
|
Instance Method Details
#help ⇒ Object
7
8
9
|
# File 'lib/byebug/settings/autolist.rb', line 7
def help
'If true, `list` command is run everytime byebug stops'
end
|
#value ⇒ Object
15
16
17
|
# File 'lib/byebug/settings/autolist.rb', line 15
def value
ListCommand.always_run == 1
end
|
#value=(v) ⇒ Object
11
12
13
|
# File 'lib/byebug/settings/autolist.rb', line 11
def value=(v)
ListCommand.always_run = v ? 1 : 0
end
|