Class: Byebug::VarGlobalCommand
- Inherits:
-
Command
- Object
- Command
- Byebug::VarGlobalCommand
show all
- Defined in:
- lib/byebug/commands/variables.rb
Constant Summary
Constants inherited
from Command
Command::DEF_OPTIONS
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
commands, format_subcmd, format_subcmds, help, inherited, #initialize, load_commands, #match, method_missing, options, register_setting_get, register_setting_set, register_setting_var, settings, settings_map
Class Method Details
.description ⇒ Object
103
104
105
106
107
|
# File 'lib/byebug/commands/variables.rb', line 103
def description
%{
v[ar] g[lobal]\t\t\tshow global variables
}
end
|
.names ⇒ Object
99
100
101
|
# File 'lib/byebug/commands/variables.rb', line 99
def names
%w(var)
end
|
Instance Method Details
#execute ⇒ Object
94
95
96
|
# File 'lib/byebug/commands/variables.rb', line 94
def execute
var_global
end
|
#regexp ⇒ Object
90
91
92
|
# File 'lib/byebug/commands/variables.rb', line 90
def regexp
/^\s*v(?:ar)?\s+g(?:lobal)?\s*$/
end
|