Class: Byebug::AutoevalSetting

Inherits:
Setting
  • Object
show all
Defined in:
lib/byebug/settings/autoeval.rb

Constant Summary collapse

DEFAULT =
true

Instance Method Summary collapse

Methods inherited from Setting

[], []=, #boolean?, boolean?, exists?, find, format, #integer?, integer?, load, settings, #to_s, #to_sym

Constructor Details

#initializeAutoevalSetting

Returns a new instance of AutoevalSetting.



5
6
7
# File 'lib/byebug/settings/autoeval.rb', line 5

def initialize
  EvalCommand.unknown = DEFAULT
end

Instance Method Details

#helpObject



9
10
11
12
# File 'lib/byebug/settings/autoeval.rb', line 9

def help
  'If true, byebug will evaluate every unrecognized command. If false, ' \
  'need to use the `eval` command to evaluate stuff'
end

#valueObject



18
19
20
# File 'lib/byebug/settings/autoeval.rb', line 18

def value
  EvalCommand.unknown
end

#value=(v) ⇒ Object



14
15
16
# File 'lib/byebug/settings/autoeval.rb', line 14

def value=(v)
  EvalCommand.unknown = v
end