# File lib/nokogiri/xml/node.rb, line 170 def attributes Hash[*(attribute_nodes.map { |node| [node.name, node] }.flatten)] end