require 'fiona7/attribute_writers/attribute_writer' require 'fiona7/attribute_writers/helpers/html_serializer' module Fiona7 module AttributeWriters class HtmlAsHtml < AttributeWriter def call(value, claimed_type=nil) self.obj.set(self.attr_name, Helpers::HtmlSerializer.new(self.obj, self.klass).call(value)) end end end end