class Byebug::VarInheritCommand
Implements byebug’s ‘var inherit’ command
def execute
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
def help(cmd)
def help(cmd) %{ v[ar] ct\t\t\tshow class heirarchy of object } end
def help_command
def help_command 'var' end
def regexp
def regexp /^\s*v(?:ar)?\s+ct\s*/ end