# File lib/asciidoctor/attribute_list.rb, line 87 def self.rekey attributes, pos_attrs pos_attrs.each_with_index do |key, index| next unless key pos = index + 1 if (val = attributes[pos]) # QUESTION should we delete the positional key? attributes[key] = val end end attributes end