Class Debugger::VarClassVarCommand
In: cli/ruby-debug/commands/variables.rb
Parent: Command

Implements the debugger ‘var class’ command.

Methods

execute   help   help_command   regexp  

Public Class methods

[Source]

    # File cli/ruby-debug/commands/variables.rb, line 46
46:       def help(cmd)
47:         %{
48:           v[ar] cl[ass] \t\t\tshow class variables of self
49:         }
50:       end

[Source]

    # File cli/ruby-debug/commands/variables.rb, line 42
42:       def help_command
43:         'var'
44:       end

Public Instance methods

[Source]

    # File cli/ruby-debug/commands/variables.rb, line 33
33:     def execute
34:       unless @state.context
35:         errmsg "can't get class variables here.\n"
36:         return 
37:       end
38:       var_class_self
39:     end

[Source]

    # File cli/ruby-debug/commands/variables.rb, line 29
29:     def regexp
30:       /^\s*v(?:ar)?\s+cl(?:ass)?/
31:     end

[Validate]