Sha256: 8077921a2caba19a7bb031e9fe55ded6e00d8d698f54a65a1d230a8e4dfc29dc

Contents?: true

Size: 131 Bytes

Versions: 3

Compression:

Stored size: 131 Bytes

Contents

module Compel
  module Coercion

    class Time < Type

      def coerce
        ::Time.parse(value)
      end

    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
compel-0.1.3 lib/compel/coercion/time.rb
compel-0.1.2 lib/compel/coercion/time.rb
compel-0.1.1 lib/compel/coercion/time.rb