Sha256: eae1703025b8f85d5e1d9d0d457b70cfc89ec7fc4d84f8042e2d579220d84b6c
Contents?: true
Size: 257 Bytes
Versions: 2
Compression:
Stored size: 257 Bytes
Contents
# frozen_string_literal: true module Sail module Types # Date # # The Date type parses the saved # string into a DateTime object. class Date < Type def to_value DateTime.parse(@setting.value) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sail-3.0.1 | lib/sail/types/date.rb |
sail-3.0.0 | lib/sail/types/date.rb |