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: utils.rb
    path of file: ./repos/datagrid/lib/datagrid
    
    the code of the file until where you have to start completion: module Datagrid
  # @!visibility private
  module Utils # :nodoc:
    class << self


      TRUTH = [true, 1, "1", "true", "yes", "on"]

      def booleanize(value)
        if value.respond_to?(:downcase)
   
    
      def format_date_as_timestamp(value)
        if !value
          value
        elsif value.is_a?(Array)
          [value.first&.beginning_of_day, value.last&.end_of_day]
        elsif value.is_a?(Range)
          (value.begin&.beginning_of_day..value.end&.end_of_day)
        else
          value.beginning_of_day..value.end_of_day
        end