Module: Debugger::ParseFunctions

Module | Debugger::ParseFunctions
In: | cli/ruby-debug/helper.rb

### Methods

get_int get_onoff show_onoff

### Public Instance methods

get_int(str, cmd, min=nil, max=nil, default=1)

Parse ‘str’ of command ‘cmd’ as an integer between min and max. If either min or max is nil, that value has no bound.

get_onoff(arg, default=nil, print_error=true)

Return true if arg is ‘on’ or 1 and false arg is ‘off’ or 0. Any other value raises RuntimeError.

show_onoff(bool)

Return ‘on’ or ‘off’ for supplied parameter. The parmeter should be true, false or nil.

[Validate]