Sha256: b0e03b83b91de89d288a0c89b8ab8f2378ca8bebe364e2839ce2e4b4538b150e
Contents?: true
Size: 290 Bytes
Versions: 105
Compression:
Stored size: 290 Bytes
Contents
module SafeYAML class Transform class ToDate def transform?(value) return true, Date.parse(value) if Parse::Date::DATE_MATCHER.match(value) return true, Parse::Date.value(value) if Parse::Date::TIME_MATCHER.match(value) false end end end end
Version data entries
105 entries across 105 versions & 3 rubygems