Sha256: 741850e33b49bae77ee709e6293e644fb0647495148cec6d8e9387094631d06d

Contents?: true

Size: 327 Bytes

Versions: 5

Compression:

Stored size: 327 Bytes

Contents

# encoding: utf-8

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mixture-0.6.2 lib/mixture/types/datetime.rb
mixture-0.6.1 lib/mixture/types/datetime.rb
mixture-0.6.0 lib/mixture/types/datetime.rb
mixture-0.5.1 lib/mixture/types/datetime.rb
mixture-0.5.0 lib/mixture/types/datetime.rb