Method: Nokogiri::XML::Searchable#at_xpath

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

#at_xpath(*args) ⇒ Object

call-seq:

at_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.



193
194
195
# File 'lib/nokogiri/xml/searchable.rb', line 193

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