Method: Nokogiri::XML::Searchable#at

Defined in:
lib/nokogiri/xml/searchable.rb

#at(*args) ⇒ Object Also known as: %

call-seq: search *paths, [namespace-bindings, xpath-variable-bindings, custom-handler-class]

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

See Searchable#search for more information.


66
67
68
# File 'lib/nokogiri/xml/searchable.rb', line 66

def at *args
  search(*args).first
end