Implements the debugger ‘var class’ command.
# 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
# File lib/ruby-debug/commands/variables.rb, line 42 def help_command 'var' end
# 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
# File lib/ruby-debug/commands/variables.rb, line 29 def regexp %r^\s*v(?:ar)?\s+cl(?:ass)?/ end