Method: Nokogiri::XML::Searchable#at_css

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

#at_css(*args) ⇒ Object

call-seq:

at_css(*rules, [namespace-bindings, custom-pseudo-class])

Search this object for CSS rules, and return only the first match. rules must be one or more CSS selectors.

See Searchable#css for more information.



143
144
145
# File 'lib/nokogiri/xml/searchable.rb', line 143

def at_css(*args)
  css(*args).first
end