class Nokogiri::XML::Node

def keys

Get the attribute names for this Node.
##
def keys
  attribute_nodes.map { |node| node.node_name }
end