Sha256: 2da31f663df51cb6dfa09544286eb8f3a8915d59ea2d7389e1b91e7394f00992
Contents?: true
Size: 449 Bytes
Versions: 4
Compression:
Stored size: 449 Bytes
Contents
module Koine module Attributes module Adapter class ArrayOf < Base def initialize(adapter) @adapter = adapter with_default_value([]) end def for_values @adapter end private def coerce_not_nil(collectionOfValues) secure do collectionOfValues.map { |value| @adapter.coerce(value) } end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems