Class: Debugger::VarGlobalCommand
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
64
65
66
67
68
|
# File 'lib/ruby-debug/commands/variables.rb', line 64
def help(cmd)
%{
v[ar] g[lobal]\t\t\tshow global variables
}
end
|
.help_command ⇒ Object
60
61
62
|
# File 'lib/ruby-debug/commands/variables.rb', line 60
def help_command
'var'
end
|
Instance Method Details
#execute ⇒ Object
55
56
57
|
# File 'lib/ruby-debug/commands/variables.rb', line 55
def execute
var_list(global_variables)
end
|
#regexp ⇒ Object
51
52
53
|
# File 'lib/ruby-debug/commands/variables.rb', line 51
def regexp
/^\s*v(?:ar)?\s+g(?:lobal)?\s*$/
end
|