Class: Byebug::VarClassCommand
- Inherits:
-
Command
- Object
- Command
- Byebug::VarClassCommand
show all
- Defined in:
- lib/byebug/commands/variables.rb
Overview
Show class 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
97
98
99
|
# File 'lib/byebug/commands/variables.rb', line 97
def description
%(v[ar] cl[ass] Show class variables of self.)
end
|
.names ⇒ Object
93
94
95
|
# File 'lib/byebug/commands/variables.rb', line 93
def names
%w(var)
end
|
Instance Method Details
#execute ⇒ Object
87
88
89
90
|
# File 'lib/byebug/commands/variables.rb', line 87
def execute
return errmsg "can't get class variables here.\n" unless @state.context
var_class_self
end
|
#regexp ⇒ Object
83
84
85
|
# File 'lib/byebug/commands/variables.rb', line 83
def regexp
/^\s* v(?:ar)? \s+ cl(?:ass)? \s*/x
end
|