Method: Nokogiri::XML::Searchable#at_css

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

#at_css(*args) ⇒ Object

call-seq: 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.


122
123
124
# File 'lib/nokogiri/xml/searchable.rb', line 122

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