class Debugger::VarInheritCommand

Public Class Methods

help(cmd) click to toggle source
# File cli/ruby-debug/commands/variables.rb, line 191
def help(cmd)
  %Q{
    v[ar] ct\t\t\tshow class heirarchy of object
  }
end
help_command() click to toggle source
# File cli/ruby-debug/commands/variables.rb, line 187
def help_command
  'var'
end

Public Instance Methods

execute() click to toggle source
# File cli/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
regexp() click to toggle source
# File cli/ruby-debug/commands/variables.rb, line 168
def regexp
  /^\s*v(?:ar)?\s+ct\s*/
end