Class: Byebug::VarGlobalCommand
- Inherits:
-
Command
- Object
- Command
- Byebug::VarGlobalCommand
show all
- Defined in:
- lib/byebug/commands/variables.rb
Overview
Show global variables and its values.
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Command
commands, find, format_subcmd, format_subcmds, help, inherited, #initialize, load_commands, #match
Class Method Details
.description ⇒ Object
153
154
155
|
# File 'lib/byebug/commands/variables.rb', line 153
def description
%(v[ar] g[lobal] Show global variables.)
end
|
.names ⇒ Object
149
150
151
|
# File 'lib/byebug/commands/variables.rb', line 149
def names
%w(var)
end
|
Instance Method Details
#execute ⇒ Object
144
145
146
|
# File 'lib/byebug/commands/variables.rb', line 144
def execute
var_global
end
|
#regexp ⇒ Object
140
141
142
|
# File 'lib/byebug/commands/variables.rb', line 140
def regexp
/^\s* v(?:ar)? \s+ g(?:lobal)? \s*$/x
end
|