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