class Nokogiri::XML::NodeSet

def at(*args)


node_set.at(3) # same as node_set[3]

Or, if passed an integer, index into the NodeSet:

See Searchable#search for more information.

result. +paths+ must be one or more XPath or CSS queries.
Search this object for +paths+, and return only the first

call-seq: search *paths, [namespace-bindings, xpath-variable-bindings, custom-handler-class]
##
def at(*args)
  if args.length == 1 && args.first.is_a?(Numeric)
    return self[args.first]
  end
  super
end