class Debugger::VarClassVarCommand

Implements the debugger ‘var class’ command.

Public Class Methods

help(cmd) click to toggle source
# File lib/ruby-debug/commands/variables.rb, line 46
def help(cmd)
  %Q{
    v[ar] cl[ass] \t\t\tshow class variables of self
  }
end
help_command() click to toggle source
# File lib/ruby-debug/commands/variables.rb, line 42
def help_command
  'var'
end

Public Instance Methods

execute() click to toggle source
# File lib/ruby-debug/commands/variables.rb, line 33
def execute
  unless @state.context
    errmsg "can't get class variables here.\n"
    return 
  end
  var_class_self
end
regexp() click to toggle source
# File lib/ruby-debug/commands/variables.rb, line 29
def regexp
  %r^\s*v(?:ar)?\s+cl(?:ass)?/
end