Sha256: d76744421a6f0cfb9cb9b1e205c1dc2171183f61d4650d3cad0d2d3778322118
Contents?: true
Size: 577 Bytes
Versions: 59
Compression:
Stored size: 577 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 binding = @state.context ? get_binding : TOPLEVEL_BINDING obj = debug_eval(@match.post_match, binding) InspectCommand.reference_result(obj) @printer.print_inspect(obj) end end end
Version data entries
59 entries across 51 versions & 5 rubygems