# File lib/ruby-debug/commands/variables.rb, line 191 def help(cmd) %Q{ v[ar] ct\t\t\tshow class heirarchy of object } end
# File lib/ruby-debug/commands/variables.rb, line 187 def help_command 'var' end
# File lib/ruby-debug/commands/variables.rb, line 172 def execute unless @state.context errmsg "can't get object inheritance.\n" return end puts @match.post_match obj = debug_eval("#{@match.post_match}.classtree") if obj print obj else errmsg "Trouble getting object #{@match.post_match}\n" end end
# File lib/ruby-debug/commands/variables.rb, line 168 def regexp %r^\s*v(?:ar)?\s+ct\s*/ end