Sha256: 4ac5bcda225893f22c23b41db2bb093f1d58c7857ea42e474a58125ae1243be0

Contents?: true

Size: 329 Bytes

Versions: 2

Compression:

Stored size: 329 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true

module Mixture
  module Types
    # A date type.  I don't know why ruby has Date, DateTime, and
    # Time, but someone thinks we need it.
    class Date < Object
      register
      options[:primitive] = ::Date
      options[:method] = :to_date
      as :date
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mixture-0.7.1 lib/mixture/types/date.rb
mixture-0.7.0 lib/mixture/types/date.rb