# File lib/pry/default_commands/shell.rb, line 133
        def process
          handler = case
            when opts.present?(:ex)
              method :process_ex
            when opts.present?(:in)
              method :process_in
            else
              method :process_file
            end

          output = handler.call do |code|
            code.code_type = opts[:type] || :ruby

            code.between(opts[:start] || 1, opts[:end] || -1).
              with_line_numbers(opts.present?('line-numbers''line-numbers') || opts.present?(:ex))
          end

          render_output(output, opts)
        end