# File lib/apipie/extractor.rb, line 36
      def finish
        record_params, record_examples = false, false
        case Apipie.configuration.record
        when "params"   then record_params = true
        when "examples" then record_examples = true
        when "all"      then record_params = true, record_examples = true
        end

        if record_examples
          puts "Writing examples to a file"
          write_examples
        end
        if record_params
          puts "Updating auto-generated documentation"
          write_docs
        end
      end