Class: Debugger::VarGlobalCommand
- Inherits:
-
Command
- Object
- Command
- Debugger::VarGlobalCommand
show all
- Defined in:
- lib/ruby-debug/commands/variables.rb
Overview
Constant Summary
Constants inherited
from Command
Command::DEF_OPTIONS
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
commands, #find, inherited, #initialize, load_commands, #match, method_missing, options, register_setting_get, register_setting_set, register_setting_var, settings, settings_map
Class Method Details
.help(cmd) ⇒ Object
101
102
103
104
105
|
# File 'lib/ruby-debug/commands/variables.rb', line 101
def help(cmd)
%{
v[ar] g[lobal]\t\t\tshow global variables
}
end
|
.help_command ⇒ Object
97
98
99
|
# File 'lib/ruby-debug/commands/variables.rb', line 97
def help_command
'var'
end
|
Instance Method Details
#execute ⇒ Object
92
93
94
|
# File 'lib/ruby-debug/commands/variables.rb', line 92
def execute
var_list(global_variables)
end
|
#regexp ⇒ Object
88
89
90
|
# File 'lib/ruby-debug/commands/variables.rb', line 88
def regexp
/^\s*v(?:ar)?\s+g(?:lobal)?\s*$/
end
|