class Nokogiri::CSS::XPathVisitor
def initialize(builtins: BuiltinsConfig::NEVER, doctype: DoctypeConfig::XML)
[Returns] XPathVisitor
- +doctype:+ (DoctypeConfig) Make document-type-specific accommodations for CSS queries.
- +builtins:+ (BuiltinsConfig) Determine when to use Nokogiri's built-in xpath functions for performance improvements.
[Parameters]
new(builtins:, doctype:) → XPathVisitor
new() → XPathVisitor
:call-seq:
def initialize(builtins: BuiltinsConfig::NEVER, doctype: DoctypeConfig::XML) unless BuiltinsConfig::VALUES.include?(builtins) raise(ArgumentError, "Invalid values #{builtins.inspect} for builtins: keyword parameter") end unless DoctypeConfig::VALUES.include?(doctype) raise(ArgumentError, "Invalid values #{doctype.inspect} for doctype: keyword parameter") end @builtins = builtins @doctype = doctype end