···103103 )
104104 end
105105106106+ # Matches if the value is a `Date` and matches the given constraints.
107107+ # If you don't need any constraints, use `Date` instead of `_Date`.
108108+ def _Date(...)
109109+ _Constraint(Date, ...)
110110+ end
111111+112112+ # Nilable version of `_Date`
113113+ def _Date?(...)
114114+ _Nilable(
115115+ _Date(...)
116116+ )
117117+ end
118118+106119 def _Deferred(...)
107120 DeferredType.new(...)
108121 end
···321334 def _Symbol?(...)
322335 _Nilable(
323336 _Symbol(...)
337337+ )
338338+ end
339339+340340+ # Matches if the value is a `Time` and matches the given constraints.
341341+ # If you don't need any constraints, use `Time` instead of `_Time`.
342342+ def _Time(...)
343343+ _Constraint(Time, ...)
344344+ end
345345+346346+ # Nilable version of `_Time`
347347+ def _Time?(...)
348348+ _Nilable(
349349+ _Time(...)
324350 )
325351 end
326352