Class: DryCss::CSS
- Inherits:
- 
      Object
      
        - Object
- DryCss::CSS
 
- Defined in:
- lib/dry_css/css.rb
Instance Attribute Summary collapse
- 
  
    
      #parser  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute parser. 
Instance Method Summary collapse
- #colors ⇒ Object
- 
  
    
      #initialize(*uri)  ⇒ CSS 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of CSS. 
- #sorted(scan) ⇒ Object
Constructor Details
Instance Attribute Details
#parser ⇒ Object (readonly)
Returns the value of attribute parser.
| 3 4 5 | # File 'lib/dry_css/css.rb', line 3 def parser @parser end | 
Instance Method Details
#colors ⇒ Object
| 11 12 13 | # File 'lib/dry_css/css.rb', line 11 def colors @colors ||= scan_for(CssParser::RE_COLOUR) end | 
#sorted(scan) ⇒ Object
| 15 16 17 | # File 'lib/dry_css/css.rb', line 15 def sorted(scan) scan.sort_by{|k,v| v }.reverse end |