Method: Nokogiri::XML::Searchable#at_xpath

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

#at_xpath(*args) ⇒ Object

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

Search this node for XPath paths, and return only the first match. paths must be one or more XPath queries.

See Searchable#xpath for more information.


164
165
166
# File 'lib/nokogiri/xml/searchable.rb', line 164

def at_xpath *args
  xpath(*args).first
end