module Koine module Attributes module Adapter class ArrayOf < Base def initialize(adapter) @adapter = adapter with_default_value([]) end def for_values @adapter end def with_attribute_name(name) @adapter.with_attribute_name(name) super(name) end private def coerce_not_nil(collectionOfValues) secure do collectionOfValues.map { |value| @adapter.coerce(value) } end end end end end end