#coerce, #initialize, #parse
This class inherits a constructor from Lego::Value::Base
4 5 6 7 8 9
# File 'lib/lego/value/date.rb', line 4 def parsers [ ->(v) { Lego.just(v.to_date) rescue Lego.fail("invalid date: '#{v}'") }, ->(v) { v.nil? ? Lego.none : Lego.just(v) }, ] end