class Hpricot::Elements

def at(expr, &blk)

See Hpricot::Container::Trav.at for more.

the CSS or XPath expression +expr+. Root is assumed to be the element scanned.
Searches this list for the first element (or child of these elements) matching
def at(expr, &blk)
  if expr.kind_of? Fixnum
    super
  else
    search(expr, &blk)[0]
  end
end