You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: default.rb
    path of file: ./repos/openproject/app/models/exports/formatters
    
    the code of the file until where you have to start completion: module Exports
  module Formatters
    class Default
     
    
      def format_value(value, options)
        case value
        when Date
          format_date value
        when Time, DateTime, ActiveSupport::TimeWithZone
          format_time value
        when Array
          value.join options.fetch(:array_separator, ', ')
        when nil
          # ruby >=2.7.1 will return a frozen string for nil.to_s which will cause an error when e.g. trying to
          # force an encoding
          ''
        else
          value.to_s
        end