Class: Plate::AttributableNode
- Inherits:
-
Struct
- Object
- Struct
- Plate::AttributableNode
- Includes:
- Inspector
- Defined in:
- lib/plate/nodes.rb,
lib/plate/compiler.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
Instance Method Summary collapse
Methods included from Inspector
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes
79 80 81 |
# File 'lib/plate/nodes.rb', line 79 def attributes @attributes end |
Instance Method Details
#compile_attributes(compiler) ⇒ Object
224 225 226 227 |
# File 'lib/plate/compiler.rb', line 224 def compile_attributes(compiler) attr = " #{attributes.map { |a| a.compile(compiler) }.join(' ')}" attr.gsub(/\A\s+\z/, '') end |