Class: Debugger::VarLocalCommand
Overview
Constant Summary
Constants inherited
from Command
Command::DEF_OPTIONS
Class Method Summary
collapse
Instance Method Summary
collapse
#var_consts, #var_list
Methods inherited from Command
commands, inherited, #initialize, load_commands, #match, method_missing, options
Class Method Details
.help(cmd) ⇒ Object
113
114
115
116
117
|
# File 'lib/ruby-debug/commands/variables.rb', line 113
def help(cmd)
%{
v[ar] l[ocal]\t\t\tshow local variables
}
end
|
.help_command ⇒ Object
109
110
111
|
# File 'lib/ruby-debug/commands/variables.rb', line 109
def help_command
'var'
end
|
Instance Method Details
#execute ⇒ Object
104
105
106
|
# File 'lib/ruby-debug/commands/variables.rb', line 104
def execute
var_list(debug_eval("local_variables"))
end
|
#regexp ⇒ Object
100
101
102
|
# File 'lib/ruby-debug/commands/variables.rb', line 100
def regexp
/^\s*v(?:ar)?\s+l(?:ocal)?\s*$/
end
|