Class: Byebug::VarLocalCommand
- Inherits:
-
Command
- Object
- Command
- Byebug::VarLocalCommand
show all
- Defined in:
- lib/byebug/commands/variables.rb
Overview
Show local 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
201
202
203
|
# File 'lib/byebug/commands/variables.rb', line 201
def description
%(v[ar] l[ocal] Sow local variables.)
end
|
.names ⇒ Object
197
198
199
|
# File 'lib/byebug/commands/variables.rb', line 197
def names
%w(var)
end
|
Instance Method Details
#execute ⇒ Object
192
193
194
|
# File 'lib/byebug/commands/variables.rb', line 192
def execute
var_local
end
|
#regexp ⇒ Object
188
189
190
|
# File 'lib/byebug/commands/variables.rb', line 188
def regexp
/^\s* v(?:ar)? \s+ l(?:ocal)? \s*$/x
end
|