class Debugger::InspectCommand

Public Class Methods

clear_references() click to toggle source
# File lib/debugger/commands/inspect.rb, line 8
def self.clear_references
  @@references = []
end
reference_result(result) click to toggle source
# File lib/debugger/commands/inspect.rb, line 5
def self.reference_result(result)
  @@references << result
end

Public Instance Methods

execute() click to toggle source
# File lib/debugger/commands/inspect.rb, line 16
def execute
  run_with_binding do |binding|
    obj = debug_eval(@match.post_match, binding)
    InspectCommand.reference_result(obj)
    print prv({eval_result: obj}, "local")
  end
end
help() click to toggle source
# File lib/debugger/commands/inspect.rb, line 24
def help
  %{
    v[ar] instpect <object>\tinpect a given object (supposed to be used only from ide)
  }
end
regexp() click to toggle source
# File lib/debugger/commands/inspect.rb, line 12
def regexp
  /^\s*v(?:ar)?\s+inspect\s+/
end