Sha256: 34fd18bf7ca6868ab8a94537065ca30108a963c954fa8f0d3cd79ca7f107168d

Contents?: true

Size: 372 Bytes

Versions: 4

Compression:

Stored size: 372 Bytes

Contents

# Author::    Eric Crane  (mailto:eric.crane@mac.com)
# Copyright:: Copyright (c) 2024 Eric Crane.  All rights reserved.
#
# Conversion tool:  Nil to Time.
#
require 'chronic'

module Gloo
  module Convert
    class NilClassToTime

      #
      # Convert a nil to a date.
      #
      def convert( value )
        return Chronic.parse( '' )
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gloo-3.5.0 lib/gloo/convert/nilclass_to_time.rb
gloo-3.4.1 lib/gloo/convert/nilclass_to_time.rb
gloo-3.4.0 lib/gloo/convert/nilclass_to_time.rb
gloo-3.3.0 lib/gloo/convert/nilclass_to_time.rb