class Byebug::VarClassVarCommand

Implements byebug’s ‘var class’ command

def description

def description
  %{v[ar] cl[ass] \t\t\tshow class variables of self}
end

def execute

def execute
  unless @state.context
    errmsg "can't get class variables here.\n"
    return
  end
  var_class_self
end

def names

def names
  %w(var)
end

def regexp

def regexp
  /^\s* v(?:ar)? \s+ cl(?:ass)? \s*/x
end