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