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.
70 71 72 |
# File 'lib/nokogiri/xml/searchable.rb', line 70 def at(*args) search(*args).first end |