Class Index [+]

Quicksearch

Sass::SCSS::CssParser

This is a subclass of {Parser} which only parses plain CSS. It doesn’t support any Sass extensions, such as interpolation, parent references, nested selectors, and so forth. It does support all the same CSS hacks as the SCSS parser, though.

Private Instance Methods

block_child(context) click to toggle source
    # File lib/sass/scss/css_parser.rb, line 23
23:       def block_child(context)
24:         case context
25:         when :ruleset
26:           declaration
27:         when :stylesheet
28:           directive || ruleset
29:         when :directive
30:           directive || declaration_or_ruleset
31:         end
32:       end
interp_ident(ident = IDENT) click to toggle source
    # File lib/sass/scss/css_parser.rb, line 15
15:       def interp_ident(ident = IDENT); tok(ident); end
interp_string() click to toggle source
    # File lib/sass/scss/css_parser.rb, line 14
14:       def interp_string; tok(STRING); end
interpolation() click to toggle source
    # File lib/sass/scss/css_parser.rb, line 13
13:       def interpolation; nil; end
nested_properties!(node, space) click to toggle source
    # File lib/sass/scss/css_parser.rb, line 34
34:       def nested_properties!(node, space)
35:         expected('expression (e.g. 1px, bold)');
36:       end
parent_selector() click to toggle source
    # File lib/sass/scss/css_parser.rb, line 12
12:       def parent_selector; nil; end
special_directive(name) click to toggle source
    # File lib/sass/scss/css_parser.rb, line 18
18:       def special_directive(name)
19:         return unless name == 'media' || name == 'import'
20:         super
21:       end
use_css_import?() click to toggle source
    # File lib/sass/scss/css_parser.rb, line 16
16:       def use_css_import?; true; end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.