Method: SafeType::DateTime.strict
- Defined in:
- lib/safe_type/primitive/date_time.rb
.strict(from: nil, to: nil) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/safe_type/primitive/date_time.rb', line 23 def self.strict(from: nil, to: nil) new( required: true, from: from, to: to ) end |