Class: CSSInliner::CSSDocument

Inherits:
CSSPool::CSS::Document
  • Object
show all
Defined in:
lib/css_inliner/extractor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCSSDocument

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_selectorsArray<CSSPool::Selector> (readonly)

Returns Array of selectors in specificity order.

Returns:

  • (Array<CSSPool::Selector>)

    Array of selectors in specificity order



9
10
11
# File 'lib/css_inliner/extractor.rb', line 9

def sorted_selectors
  @sorted_selectors
end