def formatted_attributes(tag_node)
      all_attributes = Hash.new { |hash, key| hash[key] = [] }
      xml_attributes = []

      tag_node.attributes.each do |attr|
        xml_attributes << attr.name unless all_attributes.include?(attr.name)

        all_attributes[attr.name] << attr.value
      end

      xml_attributes.map do |attr_name|
        joined = all_attributes[attr_name].join('), (')
        "\#{__tag_render_attribute('#{attr_name}', (#{joined}))}"
      end.join
    end
def formatted_attributes(tag_node)
      all_attributes = Hash.new { |hash, key| hash[key] = [] }
      xml_attributes = []

      tag_node.attributes.each do |attr|
        xml_attributes << attr.name unless all_attributes.include?(attr.name)

        all_attributes[attr.name] << attr.value
      end

      xml_attributes.map do |attr_name|
        joined = all_attributes[attr_name].join('), (')
        "\#{__tag_render_attribute('#{attr_name}', (#{joined}))}"
      end.join
    end
@param [TagNode] tag_node

 @return [String] formatted attributes