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

Version Path
ruby-debug-ide-0.2.0 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.3.4 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.4.0 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.1.9 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.4.6 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.1.8 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.4.5 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.3.2 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.3.3 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.4.3 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.1.7 lib/ruby-debug/commands/inspect.rb
ruby-debug-ide-0.4.2 lib/ruby-debug/commands/inspect.rb