Class: Premailer::CachedRuleSet
- Inherits:
-
CssParser::RuleSet
- Object
- CssParser::RuleSet
- Premailer::CachedRuleSet
- Defined in:
- lib/premailer/cached_rule_set.rb
Instance Method Summary collapse
-
#expand_shorthand! ⇒ Object
we call this early to find errors but css-parser calls it in .merge again so to prevent slowdown and bugs we refuse to run it twice on the same ruleset ideally should be upstreamed into css-parser.
Instance Method Details
#expand_shorthand! ⇒ Object
we call this early to find errors but css-parser calls it in .merge again so to prevent slowdown and bugs we refuse to run it twice on the same ruleset ideally should be upstreamed into css-parser
6 7 8 9 10 |
# File 'lib/premailer/cached_rule_set.rb', line 6 def super unless @expand_shorthand ensure @expand_shorthand = true end |