Sha256: 5bcf00883f90b5c0860ce69f5a36fa2b02d115f0a643f88d45a050611fa17ba6
Contents?: true
Size: 230 Bytes
Versions: 31
Compression:
Stored size: 230 Bytes
Contents
# -*- ruby -*- # frozen_string_literal: true module PG module TextEncoder class Date < SimpleEncoder def encode(value) value.respond_to?(:strftime) ? value.strftime("%Y-%m-%d") : value end end end end # module PG
Version data entries
31 entries across 31 versions & 1 rubygems