Sha256: 0c1ae87540e2baf25311947412462176a28447e9eae1ecb1a05b4412cd742b76
Contents?: true
Size: 561 Bytes
Versions: 8
Compression:
Stored size: 561 Bytes
Contents
module Debugger class InspectCommand < Command # reference inspection results in order to save them from the GC @@references = [] def self.reference_result(result) @@references << result end def self.clear_references @@references = [] end def regexp /^\s*v(?:ar)?\s+inspect\s+/ end 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 end end
Version data entries
8 entries across 8 versions & 1 rubygems