Class: Plate::StyleNode
- Inherits:
-
Struct
- Object
- Struct
- Plate::StyleNode
- Defined in:
- lib/plate/nodes.rb,
lib/plate/compiler.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
Returns the value of attribute attribute.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#attribute ⇒ Object
Returns the value of attribute attribute
19 20 21 |
# File 'lib/plate/nodes.rb', line 19 def attribute @attribute end |
#value ⇒ Object
Returns the value of attribute value
19 20 21 |
# File 'lib/plate/nodes.rb', line 19 def value @value end |
Instance Method Details
#compile(compiler, parent = nil) ⇒ Object
106 107 108 109 |
# File 'lib/plate/compiler.rb', line 106 def compile(compiler, parent = nil) parent.styles << "#{attribute}: #{value.compile(compiler, self)}" '' end |