Class Nokogiri::CSS::Parser
In: lib/nokogiri/css/parser.rb
Parent: Nokogiri::CSS::GeneratedTokenizer

Methods

[]   []=   clear_cache   new   on_error   parse   without_cache   xpath_for  

External Aliases

cache_on -> cache_on?
cache_on= -> set_cache
scan_str -> parse

Attributes

cache_on  [RW]  Turn on CSS parse caching

Public Class methods

Get the css selector in string from the cache

Set the css selector in string in the cache to value

Clear the cache

Create a new CSS parser with respect to namespaces

Parse this CSS selector in selector. Returns an AST.

Execute block without cache

Public Instance methods

On CSS parser error, raise an exception

Get the xpath for string using options

[Validate]