Sha256: 81a42edc676832d6bb5bad1bbb32a7d85fa33f08e64d6b2dfaffd807002e2e1a

Contents?: true

Size: 624 Bytes

Versions: 40

Compression:

Stored size: 624 Bytes

Contents

# encoding: utf-8
require_relative 'crass/parser'

# A CSS parser based on the CSS Syntax Module Level 3 spec.
module Crass

  # Parses _input_ as a CSS stylesheet and returns a parse tree.
  #
  # See {Tokenizer#initialize} for _options_.
  def self.parse(input, options = {})
    Parser.parse_stylesheet(input, options)
  end

  # Parses _input_ as a string of CSS properties (such as the contents of an
  # HTML element's `style` attribute) and returns a parse tree.
  #
  # See {Tokenizer#initialize} for _options_.
  def self.parse_properties(input, options = {})
    Parser.parse_properties(input, options)
  end

end

Version data entries

40 entries across 37 versions & 14 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/crass-1.0.6/lib/crass.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/crass-1.0.6/lib/crass.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/crass-1.0.6/lib/crass.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/crass-1.0.6/lib/crass.rb
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/crass-1.0.6/lib/crass.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/crass-1.0.6/lib/crass.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/crass-1.0.6/lib/crass.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/crass-1.0.6/lib/crass.rb
mumukit-content-type-1.12.1 vendor/bundle/ruby/2.7.0/gems/crass-1.0.6/lib/crass.rb
mumukit-content-type-1.12.0 vendor/bundle/ruby/2.7.0/gems/crass-1.0.6/lib/crass.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/crass-1.0.6/lib/crass.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/crass-1.0.6/lib/crass.rb
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/crass-1.0.6/lib/crass.rb
mumukit-content-type-1.11.1 vendor/bundle/ruby/2.6.0/gems/crass-1.0.6/lib/crass.rb
argon-1.3.1 vendor/bundle/ruby/2.7.0/gems/crass-1.0.6/lib/crass.rb
symbolic_enum-1.1.5 vendor/bundle/ruby/2.7.0/gems/crass-1.0.6/lib/crass.rb
crass-1.0.6 lib/crass.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/crass-1.0.4/lib/crass.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/crass-1.0.5/lib/crass.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/crass-1.0.4/lib/crass.rb