Sha256: bfca7208eb034a3c1051a51623f2d3c72f1f86eef3e39e39637041c29f00364d
Contents?: true
Size: 349 Bytes
Versions: 4
Compression:
Stored size: 349 Bytes
Contents
module Compel module Builder class Time < Schema include CommonValue def initialize super(Coercion::Time) end def format(value, options = {}) build_option :format, value, options end def iso8601(options = {}) build_option :format, '%FT%T', options end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
compel-0.5.1 | lib/compel/builder/time.rb |
compel-0.5.0 | lib/compel/builder/time.rb |
compel-0.4.3 | lib/compel/builder/time.rb |
compel-0.4.2 | lib/compel/builder/time.rb |