Sha256: 94721b80176ad690e94743fe8ba1f051a9ee4ab8e0e8e39d6811dfff11e447db
Contents?: true
Size: 366 Bytes
Versions: 26
Compression:
Stored size: 366 Bytes
Contents
module Foobara module BuiltinTypes module Datetime module Casters class Date < Value::Caster def applicable?(value) value.is_a?(::Date) end def applies_message "be a Date" end def cast(date) date.to_time end end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems