Method: SafeType::Time#initialize
- Defined in:
- lib/safe_type/primitive/time.rb
#initialize(type: ::Time, from: nil, to: nil, **args) ⇒ Time
Returns a new instance of Time.
3 4 5 6 7 |
# File 'lib/safe_type/primitive/time.rb', line 3 def initialize(type: ::Time, from: nil, to: nil, **args) @from = from @to = to super end |