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.


117
118
119
# File 'lib/nokogiri/xml/searchable.rb', line 117

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