Sha256: b905c74d2f7e254868023fc69fc3f84c8ab291bbe7226355f90639f1a7704afa

Contents?: true

Size: 603 Bytes

Versions: 5

Compression:

Stored size: 603 Bytes

Contents

require 'nokogiri/css/node'
require 'nokogiri/css/xpath_visitor'
require 'nokogiri/css/generated_parser'
require 'nokogiri/css/generated_tokenizer'
require 'nokogiri/css/tokenizer'
require 'nokogiri/css/parser'
require 'nokogiri/css/syntax_error'

module Nokogiri
  module CSS
    class << self
      ###
      # Parse this CSS selector in +selector+.  Returns an AST.
      def parse selector
        Parser.new.parse selector
      end

      ###
      # Get the XPath for +selector+.
      def xpath_for selector, options={}
        Parser.new.xpath_for selector, options
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nokogiri-1.0.7-x86-mswin32-60 lib/nokogiri/css.rb
nokogiri-1.0.7 lib/nokogiri/css.rb
nokogiri-1.1.1-java lib/nokogiri/css.rb
nokogiri-1.1.1-x86-mswin32-60 lib/nokogiri/css.rb
nokogiri-1.1.1 lib/nokogiri/css.rb