Class: CSSInliner::CSSDocument
- Inherits:
-
CSSPool::CSS::Document
- Object
- CSSPool::CSS::Document
- CSSInliner::CSSDocument
- Defined in:
- lib/css_inliner/extractor.rb
Instance Attribute Summary collapse
-
#sorted_selectors ⇒ Array<CSSPool::Selector>
readonly
Array of selectors in specificity order.
Instance Method Summary collapse
-
#initialize ⇒ CSSDocument
constructor
A new instance of CSSDocument.
Constructor Details
#initialize ⇒ CSSDocument
Returns a new instance of CSSDocument.
11 12 13 14 |
# File 'lib/css_inliner/extractor.rb', line 11 def initialize super @sorted_selectors = [] end |
Instance Attribute Details
#sorted_selectors ⇒ Array<CSSPool::Selector> (readonly)
Returns Array of selectors in specificity order.
9 10 11 |
# File 'lib/css_inliner/extractor.rb', line 9 def sorted_selectors @sorted_selectors end |