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