Parent

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 49
def help(cmd)
  %{
    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 45
def help_command
  'var'
end

Public Instance Methods

execute() click to toggle source
# File lib/ruby-debug/commands/variables.rb, line 36
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 32
def regexp
  /^\s*v(?:ar)?\s+cl(?:ass)?/
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.