Sha256: 6ce2edd249be6b547a96cc9146c6ec328af55dc5a1b40f075db0cd1b987dddee
Contents?: true
Size: 475 Bytes
Versions: 18
Compression:
Stored size: 475 Bytes
Contents
module Virtus class Coercion # Coerce Date values class Date < Object extend TimeCoercions primitive ::Date # Passthrough the value # # @example # Virtus::Coercion::DateTime.to_date(date) # => Date object # # @param [DateTime] value # # @return [Date] # # @api public def self.to_date(value) value end end # class Date end # class Coercion end # module Virtus
Version data entries
18 entries across 18 versions & 2 rubygems