Class: PlasticCup::Stylesheet
- Inherits:
-
Object
- Object
- PlasticCup::Stylesheet
- Defined in:
- lib/plastic_cup/stylesheet.rb
Instance Attribute Summary collapse
-
#extends ⇒ Object
Returns the value of attribute extends.
-
#properties ⇒ Object
Returns the value of attribute properties.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Stylesheet
constructor
A new instance of Stylesheet.
Constructor Details
#initialize(options = {}) ⇒ Stylesheet
Returns a new instance of Stylesheet.
7 8 9 10 11 12 |
# File 'lib/plastic_cup/stylesheet.rb', line 7 def initialize(={}) @extends = .delete(:extends) || [] @extends = [@extends] if !@extends.is_a?(Array) @extends.map!{|ext| Base.to_key(ext)} @properties= end |
Instance Attribute Details
#extends ⇒ Object
Returns the value of attribute extends.
5 6 7 |
# File 'lib/plastic_cup/stylesheet.rb', line 5 def extends @extends end |
#properties ⇒ Object
Returns the value of attribute properties.
5 6 7 |
# File 'lib/plastic_cup/stylesheet.rb', line 5 def properties @properties end |