def extract_noindex
      noindex_name, noindex_value = extract_noindex_attribute(:noindex)
      index_name, index_value = extract_noindex_attribute(:index)

      nofollow_name, nofollow_value = extract_noindex_attribute(:nofollow)
      follow_name, follow_value = extract_noindex_attribute(:follow)

      noindex_attributes = if noindex_name == follow_name && (noindex_value || follow_value)
                             # noindex has higher priority than index and follow has higher priority than nofollow
                             [
                               [noindex_name, noindex_value || index_value],
                               [follow_name, follow_value || nofollow_value],
                             ]
                           else
                             [
                               [index_name, index_value],
                               [follow_name, follow_value],
                               [noindex_name, noindex_value],
                               [nofollow_name, nofollow_value],
                             ]
                           end
      append_noarchive_attribute group_attributes_by_key noindex_attributes
    end
def extract_noindex
      noindex_name, noindex_value = extract_noindex_attribute(:noindex)
      index_name, index_value = extract_noindex_attribute(:index)

      nofollow_name, nofollow_value = extract_noindex_attribute(:nofollow)
      follow_name, follow_value = extract_noindex_attribute(:follow)

      noindex_attributes = if noindex_name == follow_name && (noindex_value || follow_value)
                             # noindex has higher priority than index and follow has higher priority than nofollow
                             [
                               [noindex_name, noindex_value || index_value],
                               [follow_name, follow_value || nofollow_value],
                             ]
                           else
                             [
                               [index_name, index_value],
                               [follow_name, follow_value],
                               [noindex_name, noindex_value],
                               [nofollow_name, nofollow_value],
                             ]
                           end
      append_noarchive_attribute group_attributes_by_key noindex_attributes
    end
Extracts noindex settings as a Hash mapping noindex tag name to value.

 @return [Hash<String,String>] noindex attributes.