Sha256: 713626c584c842e064566866b578661b2f2a14bdbb4d24520faf2df1e1514f56
Contents?: true
Size: 286 Bytes
Versions: 2
Compression:
Stored size: 286 Bytes
Contents
module Compel module Builder class String < Schema include CommonValue def initialize super(Coercion::String) end def format(regex) options[:format] = Coercion.coerce!(regex, Coercion::Regexp) self end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
compel-0.3.6 | lib/compel/builder/string.rb |
compel-0.3.4 | lib/compel/builder/string.rb |