Sha256: a20d3331abf91a6c6d2e618f7aad502cfd1f4e899e2795449ef7c9f8bb1179b3

Contents?: true

Size: 357 Bytes

Versions: 2

Compression:

Stored size: 357 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true

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

2 entries across 2 versions & 1 rubygems

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