Sha256: 7ad945dde4c557904ea5b573d629d01f62ec412f5452f6f75ecad68acef5f6bc
Contents?: true
Size: 503 Bytes
Versions: 32
Compression:
Stored size: 503 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 obj = debug_eval(@match.post_match) InspectCommand.reference_result(obj) @printer.print_inspect(obj) end end end
Version data entries
32 entries across 32 versions & 3 rubygems