class Stannum::Constraints::Types::DateTimeType

A DateTimeType constraint asserts that the object is a DateTime.

Public Class Methods

new(**options) click to toggle source

@param options [Hash<Symbol, Object>] Configuration options for the

constraint. Defaults to an empty Hash.
Calls superclass method Stannum::Constraints::Type::new
# File lib/stannum/constraints/types/date_time_type.rb, line 12
def initialize(**options)
  super(::DateTime, **options)
end