Method: Debugger::VarInheritCommand#execute

Defined in:
lib/ruby-debug/commands/variables.rb

#executeObject



189
190
191
192
193
194
195
196
197
198
199
200
201
# File 'lib/ruby-debug/commands/variables.rb', line 189

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