Module: Renshuu::Types
- Defined in:
- lib/renshuu/models/types.rb
Overview
Module for type values.
Constant Summary collapse
- Date =
Dry type for dates.
Constructor(::Date) do |date| case date when ::Date then date when 'Not yet' then nil when 'Now' then ::Date.today else ::Date.parse(date) end end
- URI =
Dry type for URIs.
Constructor(URI) do |uri| ::URI.parse(uri) end