Sha256: 6d9590ecd8d63a3d7c09ab35566ab6bbd4fdc1de3ea17386dd895d9b9d5bea57

Contents?: true

Size: 605 Bytes

Versions: 61

Compression:

Stored size: 605 Bytes

Contents

# frozen_string_literal: true
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

require_relative "css/node"
require_relative "css/xpath_visitor"
x = $-w
$-w = false
require_relative "css/parser"
$-w = x

require_relative "css/tokenizer"
require_relative "css/syntax_error"

Version data entries

61 entries across 61 versions & 4 rubygems

Version Path
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/nokogiri-1.12.5-x86_64-linux/lib/nokogiri/css.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/nokogiri-1.12.5-x86_64-linux/lib/nokogiri/css.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/nokogiri-1.12.5-x86_64-linux/lib/nokogiri/css.rb
nokogiri-1.12.5 lib/nokogiri/css.rb
nokogiri-1.12.5-x86_64-linux lib/nokogiri/css.rb
nokogiri-1.12.5-x86_64-darwin lib/nokogiri/css.rb
nokogiri-1.12.5-x86-mingw32 lib/nokogiri/css.rb
nokogiri-1.12.5-x86-linux lib/nokogiri/css.rb
nokogiri-1.12.5-x64-mingw32 lib/nokogiri/css.rb
nokogiri-1.12.5-java lib/nokogiri/css.rb
nokogiri-1.12.5-arm64-darwin lib/nokogiri/css.rb
nokogiri-1.12.4 lib/nokogiri/css.rb
nokogiri-1.12.4-x86_64-linux lib/nokogiri/css.rb
nokogiri-1.12.4-x86_64-darwin lib/nokogiri/css.rb
nokogiri-1.12.4-x86-mingw32 lib/nokogiri/css.rb
nokogiri-1.12.4-x86-linux lib/nokogiri/css.rb
nokogiri-1.12.4-x64-mingw32 lib/nokogiri/css.rb
nokogiri-1.12.4-java lib/nokogiri/css.rb
nokogiri-1.12.4-arm64-darwin lib/nokogiri/css.rb
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/nokogiri-1.12.3-x86_64-linux/lib/nokogiri/css.rb