HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/rubygems-integration/all/gems/crass-1.0.2/lib/crass.rb
# 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