class Byebug::VarIdeCommand
Public Instance Methods
execute()
click to toggle source
# File lib/byebug/commands/variables.rb, line 46 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()
click to toggle source
# File lib/byebug/commands/variables.rb, line 42 def regexp /^\s*v(?:ar)?\s+ide\s*$/ end