Sha256: 8b48f1b91bf8e5d7180390b9ed8e0039e6e8872786c0a8f1ce65fbad1ba90b73
Contents?: true
Size: 369 Bytes
Versions: 2
Compression:
Stored size: 369 Bytes
Contents
module Koine module Attributes module Adapter class ArrayOf < Base def initialize(adapter) @adapter = adapter with_default_value([]) end def coerce(collectionOfValues) secure do collectionOfValues.map { |value| @adapter.coerce(value) } end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
koine-attributes-0.2.3 | lib/koine/attributes/adapter/array_of.rb |
koine-attributes-0.2.2 | lib/koine/attributes/adapter/array_of.rb |