Class: Debugger::VarIdeCommand
- Inherits:
-
Command
- Object
- Command
- Debugger::VarIdeCommand
- Defined in:
- lib/debugger/commands/variables.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/debugger/commands/variables.rb', line 29 def execute locals = [] _self = @state.context.frame_self(@state.frame_pos) locals << ['self', _self] unless _self.to_s == "main" locals += @state.context.frame_locals(@state.frame_pos).sort.map { |key, value| [key, value] } print prv(locals, 'instance') end |
#regexp ⇒ Object
25 26 27 |
# File 'lib/debugger/commands/variables.rb', line 25 def regexp /^\s*v(?:ar)?\s+ide\s*$/ end |