class Contentful::ArrayCoercion
Coercion for Array
Types
Public Instance Methods
Source
# File lib/contentful/coercions.rb, line 95 def coerce(*) value.map do |e| options[:coercion_class].new(e).coerce end end
Coerces value for each element
Coercion for Array
Types
# File lib/contentful/coercions.rb, line 95 def coerce(*) value.map do |e| options[:coercion_class].new(e).coerce end end
Coerces value for each element