Sha256: 339badb243af4de75da6b8a90b119da92e9110c1e64e61e8426ea3429725fdd7

Contents?: true

Size: 260 Bytes

Versions: 1

Compression:

Stored size: 260 Bytes

Contents

# frozen_string_literal: true

module Datewari
  class Util
    class << self
      def parse_date(date)
        if date.is_a?(String)
          Date.parse(date)
        else
          date
        end
      rescue => e
        nil
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datewari-1.1.1 lib/datewari/util.rb