Sha256: c1da6335f73cfe6231f3821ed334bbe04d08e7d7c4602a0d7c91623d74e73218

Contents?: true

Size: 738 Bytes

Versions: 4

Compression:

Stored size: 738 Bytes

Contents

# encoding: utf-8

module Veritas
  class Attribute

    # Represents a Date value in a relation tuple
    class Date < Object
      include Comparable

      DEFAULT_RANGE = (::Date.new..::Date::Infinity.new).freeze

      # The Date primitive
      #
      # @example
      #   Date.primitive  # => ::Date
      #
      # @return [Class<::Date>]
      #
      # @api public
      def self.primitive
        ::Date
      end

      # The Date range for a valid value
      #
      # @example
      #   Date.range  # => ::Date.new(*from)..::Date.new(*to)
      #
      # @return [Range<::Date>]
      #
      # @api public
      def range
        DEFAULT_RANGE
      end

    end # class Date
  end # class Attribute
end # module Veritas

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
veritas-0.0.7 lib/veritas/attribute/date.rb
veritas-0.0.6 lib/veritas/attribute/date.rb
veritas-0.0.5 lib/veritas/attribute/date.rb
veritas-0.0.4 lib/veritas/attribute/date.rb