Class Debugger::VarInheritCommand
In: cli/ruby-debug/commands/variables.rb
Parent: Command

Methods

execute   help   help_command   regexp  

Public Class methods

[Source]

     # File cli/ruby-debug/commands/variables.rb, line 191
191:       def help(cmd)
192:         %{
193:           v[ar] ct\t\t\tshow class heirarchy of object
194:         }
195:       end

[Source]

     # File cli/ruby-debug/commands/variables.rb, line 187
187:       def help_command
188:         'var'
189:       end

Public Instance methods

[Source]

     # File cli/ruby-debug/commands/variables.rb, line 172
172:     def execute
173:       unless @state.context
174:         errmsg "can't get object inheritance.\n"
175:         return 
176:       end
177:       puts @match.post_match
178:       obj = debug_eval("#{@match.post_match}.classtree")
179:       if obj
180:         print obj
181:       else
182:         errmsg "Trouble getting object #{@match.post_match}\n"
183:       end
184:     end

[Source]

     # File cli/ruby-debug/commands/variables.rb, line 168
168:     def regexp
169:       /^\s*v(?:ar)?\s+ct\s*/
170:     end

[Validate]