Sha256: 1e790fefac7819bac73077b88222c7127b18c6444c79228d2aacf8f07cd2c230

Contents?: true

Size: 1.13 KB

Versions: 6796

Compression:

Stored size: 1.13 KB

Contents

# frozen_string_literal: true

class Pry
  class Inspector
    MAP = {
      "default" => {
        value: Pry.config.print,
        description: <<-DESCRIPTION.each_line.map(&:lstrip!)
          The default Pry inspector. It has paging and color support, and uses
          pretty_inspect when printing an object.
        DESCRIPTION
      },

      "simple" => {
        value: proc do |output, value|
          begin
            output.puts value.inspect
          rescue RescuableException
            output.puts "unknown"
          end
        end,
        description: <<-DESCRIPTION.each_line.map(&:lstrip)
          A simple inspector that uses #puts and #inspect when printing an
          object. It has no pager, color, or pretty_inspect support.
        DESCRIPTION
      },

      "clipped" => {
        value: proc do |output, value|
          output.puts Pry.view_clip(value, id: true)
        end,
        description: <<-DESCRIPTION.each_line.map(&:lstrip)
          The clipped inspector has the same features as the 'simple' inspector
          but prints large objects as a smaller string.
        DESCRIPTION
      }
    }.freeze
  end
end

Version data entries

6,796 entries across 6,792 versions & 31 rubygems

Version Path
cybrid_api_bank_ruby-0.123.149 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/inspector.rb
cybrid_api_id_ruby-0.123.149 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/inspector.rb
cybrid_api_organization_ruby-0.123.149 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/inspector.rb
cybrid_api_bank_ruby-0.123.148 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/inspector.rb
cybrid_api_id_ruby-0.123.148 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/inspector.rb
cybrid_api_organization_ruby-0.123.148 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/inspector.rb
cybrid_api_bank_ruby-0.123.147 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/inspector.rb
cybrid_api_organization_ruby-0.123.147 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/inspector.rb
cybrid_api_id_ruby-0.123.147 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/inspector.rb
ory-client-1.16.2 vendor/bundle/ruby/3.1.0/gems/pry-0.14.2/lib/pry/inspector.rb
avalara_sdk-24.12.2 vendor/bundle/ruby/2.7.0/gems/pry-0.13.1/lib/pry/inspector.rb
cybrid_api_bank_ruby-0.123.145 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/inspector.rb
cybrid_api_organization_ruby-0.123.145 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/inspector.rb
cybrid_api_id_ruby-0.123.145 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/inspector.rb
cybrid_api_bank_ruby-0.123.144 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/inspector.rb
cybrid_api_id_ruby-0.123.144 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/inspector.rb
cybrid_api_organization_ruby-0.123.144 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/inspector.rb
ory-client-1.16.1 vendor/bundle/ruby/3.1.0/gems/pry-0.14.2/lib/pry/inspector.rb
ory-client-1.16.0 vendor/bundle/ruby/3.1.0/gems/pry-0.14.2/lib/pry/inspector.rb
cybrid_api_bank_ruby-0.123.143 vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/inspector.rb