Sha256: 3ccfa3b8c77553fce20230aa6bd585e250cf1c6580c34e69751e9224ad221931
Contents?: true
Size: 418 Bytes
Versions: 3
Compression:
Stored size: 418 Bytes
Contents
module Compel module Coercion class Type attr_accessor :value, :options def initialize(value, options = {}) @value = value @options = options end def parse @value = value end def serialize raise '#serialize? should be implemented' end def coerce! parse coerce end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
compel-0.1.3 | lib/compel/coercion/type.rb |
compel-0.1.2 | lib/compel/coercion/type.rb |
compel-0.1.1 | lib/compel/coercion/type.rb |