Namespace
Methods
P
X
Class Public methods
parse(selector)

Parse this CSS selector in selector. Returns an AST.

# File lib/nokogiri/css.rb, line 16
def parse selector
  Parser.new.parse selector
end
xpath_for(selector, options={})

Get the XPath for selector.

# File lib/nokogiri/css.rb, line 22
def xpath_for selector, options={}
  Parser.new(options[:ns] || {}).xpath_for selector, options
end