Sha256: b49778550a3cf47227dfcb91b3762b85fa4fd33d5a61a27847dddd095d963eda

Contents?: true

Size: 540 Bytes

Versions: 3

Compression:

Stored size: 540 Bytes

Contents

require 'nokogiri/css/node'
require 'nokogiri/css/xpath_visitor'
require 'nokogiri/css/parser'
require 'nokogiri/css/tokenizer'
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(options[:ns] || {}).xpath_for selector, options
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
nokogiri-1.5.0.beta.4 lib/nokogiri/css.rb
nokogiri-1.5.0.beta.4-java lib/nokogiri/css.rb
nokogiri-backupify-1.5.0.beta.4 lib/nokogiri/css.rb