Method: Nokogiri::XML::Searchable#at
- Defined in:
- lib/nokogiri/xml/searchable.rb
#at(*args) ⇒ Object Also known as: %
call-seq:
at(*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.
74 75 76 |
# File 'lib/nokogiri/xml/searchable.rb', line 74 def at(*args) search(*args).first end |