Sha256: 360bbaf75afbc7232d7ac2f380a2f4c277f5138b49dc056786d8f0a984561c92

Contents?: true

Size: 570 Bytes

Versions: 13

Compression:

Stored size: 570 Bytes

Contents

require 'nokogiri/css/node'
require 'nokogiri/css/xpath_visitor'

x = $-w
$-w = false
require 'nokogiri/css/parser'
$-w = x

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

13 entries across 13 versions & 2 rubygems

Version Path
nokogiri-1.4.7-java lib/nokogiri/css.rb
nokogiri-1.4.7-x86-mingw32 lib/nokogiri/css.rb
nokogiri-1.4.7-x86-mswin32-60 lib/nokogiri/css.rb
nokogiri-1.4.7 lib/nokogiri/css.rb
search_biomodel-1.0.0 search_biomodel/ruby/1.8/gems/nokogiri-1.4.6/lib/nokogiri/css.rb
nokogiri-1.4.6 lib/nokogiri/css.rb
nokogiri-1.4.6-java lib/nokogiri/css.rb
nokogiri-1.4.6-x86-mingw32 lib/nokogiri/css.rb
nokogiri-1.4.6-x86-mswin32-60 lib/nokogiri/css.rb
nokogiri-1.4.5-java lib/nokogiri/css.rb
nokogiri-1.4.5 lib/nokogiri/css.rb
nokogiri-1.4.5-x86-mswin32-60 lib/nokogiri/css.rb
nokogiri-1.4.5-x86-mingw32 lib/nokogiri/css.rb