class Nokogiri::XML::Node

def keys

Get the attribute names for this Node.
##
def keys
  attribute_nodes.map(&:node_name)
end