Sha256: 8f5edb947af318011b57511aacd6a1bea3e632c395619c1cd108cca936851f54
Contents?: true
Size: 439 Bytes
Versions: 19
Compression:
Stored size: 439 Bytes
Contents
require 'fiona7/attribute_writers/attribute_writer' require 'fiona7/attribute_writers/helpers/link_serializer' module Fiona7 module AttributeWriters class LinklistAsLinklist < AttributeWriter def call(value, claimed_type=nil) links = (value || []).map do |link| Helpers::LinkSerializer.new(self.obj, self.klass).call(link) end self.obj.set(self.attr_name, links) end end end end
Version data entries
19 entries across 19 versions & 1 rubygems