Class: Pry::Inspector

Inherits:
Object show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pry-0.14.2/lib/pry/inspector.rb

Constant Summary collapse

MAP =
{
  "default" => {
    value: Pry.config.print,
    description: "      The default Pry inspector. It has paging and color support, and uses\n      pretty_inspect when printing an object.\n    DESCRIPTION\n  },\n\n  \"simple\" => {\n    value: proc do |output, value|\n      begin\n        output.puts value.inspect\n      rescue RescuableException\n        output.puts \"unknown\"\n      end\n    end,\n    description: <<-DESCRIPTION.each_line.map(&:lstrip)\n      A simple inspector that uses #puts and #inspect when printing an\n      object. It has no pager, color, or pretty_inspect support.\n    DESCRIPTION\n  },\n\n  \"clipped\" => {\n    value: proc do |output, value|\n      output.puts Pry.view_clip(value, id: true)\n    end,\n    description: <<-DESCRIPTION.each_line.map(&:lstrip)\n      The clipped inspector has the same features as the 'simple' inspector\n      but prints large objects as a smaller string.\n    DESCRIPTION\n  }\n}.freeze\n".each_line.map(&:lstrip!)