Class: Premailer::CachedRuleSet

Inherits:
CssParser::RuleSet
  • Object
show all
Defined in:
lib/premailer/cached_rule_set.rb

Instance Method Summary collapse

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



7
8
9
10
11
# File 'lib/premailer/cached_rule_set.rb', line 7

def expand_shorthand!
  super unless @expand_shorthand
ensure
  @expand_shorthand = true
end