class Pry::Command::ChangeInspector - pry-0.10.1 Documentation

# class Pry::Command::ChangeInspector

### Public Instance Methods

process(inspector) click to toggle source

    # File lib/pry/commands/change_inspector.rb, line 13
    def process(inspector)
      if inspector_map.key?(inspector)
        _pry_.print = inspector_map[inspector][:value]
        output.puts "Switched to the '#{inspector}' inspector!"
      else
        raise Pry::CommandError, "'#{inspector}' isn't a known inspector!"
      end
    end