Class: Plate::FrontMatterNode
- Inherits:
-
Struct
- Object
- Struct
- Plate::FrontMatterNode
- Defined in:
- lib/plate/nodes.rb,
lib/plate/compiler.rb
Instance Attribute Summary collapse
-
#yaml ⇒ Object
Returns the value of attribute yaml.
Instance Method Summary collapse
Instance Attribute Details
#yaml ⇒ Object
Returns the value of attribute yaml
23 24 25 |
# File 'lib/plate/nodes.rb', line 23 def yaml @yaml end |
Instance Method Details
#compile(compiler, parent = nil) ⇒ Object
128 129 130 131 132 |
# File 'lib/plate/compiler.rb', line 128 def compile(compiler, parent = nil) = YAML.load(yaml) compiler. = '' end |