Sha256: f8d67b8a1c86d3d7e441f8ffee024964279fc6977cd24defee35882af94a2e47
Contents?: true
Size: 625 Bytes
Versions: 3
Compression:
Stored size: 625 Bytes
Contents
# encoding: utf-8 require_relative 'crass/parser' # A CSS parser based on the CSS Syntax Module Level 3 draft. 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
crass-0.2.1 | lib/crass.rb |
crass-0.2.0 | lib/crass.rb |
crass-0.1.0 | lib/crass.rb |