Class: Sass::SCSS::CssParser
- Inherits:
-
StaticParser
- Object
- Parser
- StaticParser
- Sass::SCSS::CssParser
- Defined in:
- /var/www/sass-pages/.sass/lib/sass/scss/css_parser.rb
Overview
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.
Constant Summary
Instance Method Summary
- - (String?) parse_selector_string Parse a selector, and return its value as a string.
Methods inherited from StaticParser
Methods inherited from Parser
#initialize, #parse, #parse_interp_ident
Methods included from RX
Constructor Details
This class inherits a constructor from Sass::SCSS::Parser
Instance Method Details
- (String?) parse_selector_string
Parse a selector, and return its value as a string.
14 15 16 17 |
# File '/var/www/sass-pages/.sass/lib/sass/scss/css_parser.rb', line 14
def parse_selector_string
init_scanner!
str {return unless selector}
end
|