Class: Glimmer::CSS::StyleSheet
- Inherits:
-
Object
- Object
- Glimmer::CSS::StyleSheet
- Defined in:
- lib/glimmer/css/style_sheet.rb
Instance Attribute Summary collapse
-
#rules ⇒ Object
readonly
Returns the value of attribute rules.
Instance Method Summary collapse
-
#initialize ⇒ StyleSheet
constructor
A new instance of StyleSheet.
- #to_css ⇒ Object (also: #to_s)
Constructor Details
#initialize ⇒ StyleSheet
Returns a new instance of StyleSheet.
29 30 31 |
# File 'lib/glimmer/css/style_sheet.rb', line 29 def initialize @rules = [] end |
Instance Attribute Details
#rules ⇒ Object (readonly)
Returns the value of attribute rules.
27 28 29 |
# File 'lib/glimmer/css/style_sheet.rb', line 27 def rules @rules end |
Instance Method Details
#to_css ⇒ Object Also known as: to_s
33 34 35 |
# File 'lib/glimmer/css/style_sheet.rb', line 33 def to_css rules.map(&:to_css).join end |