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.
8 9 10 |
# File 'lib/glimmer/css/style_sheet.rb', line 8 def initialize @rules = [] end |
Instance Attribute Details
#rules ⇒ Object (readonly)
Returns the value of attribute rules.
6 7 8 |
# File 'lib/glimmer/css/style_sheet.rb', line 6 def rules @rules end |
Instance Method Details
#to_css ⇒ Object Also known as: to_s
12 13 14 |
# File 'lib/glimmer/css/style_sheet.rb', line 12 def to_css rules.map(&:to_css).join end |