Sha256: f1bc35acf4c5b2d8ff403cad56a5627e796263fcea0a64ccf52bbb3c0f183abb
Contents?: true
Size: 602 Bytes
Versions: 1
Compression:
Stored size: 602 Bytes
Contents
# frozen_string_literal: true 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(collection_of_values) secure do collection_of_values.map { |value| @adapter.coerce(value) } end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
koine-attributes-1.2.4 | lib/koine/attributes/adapter/array_of.rb |