lib/koine/attributes/adapter/array_of.rb in koine-attributes-0.3.2 vs lib/koine/attributes/adapter/array_of.rb in koine-attributes-0.4.0
- old
+ new
@@ -5,9 +5,13 @@
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) }