Class: Frontmatter
- Inherits:
-
Object
- Object
- Frontmatter
- Defined in:
- lib/almirah/doc_items/frontmatter.rb
Instance Attribute Summary collapse
-
#parameters ⇒ Object
Returns the value of attribute parameters.
Instance Method Summary collapse
-
#initialize(yaml_text_line) ⇒ Frontmatter
constructor
A new instance of Frontmatter.
Constructor Details
#initialize(yaml_text_line) ⇒ Frontmatter
Returns a new instance of Frontmatter.
6 7 8 |
# File 'lib/almirah/doc_items/frontmatter.rb', line 6 def initialize(yaml_text_line) @parameters = YAML.safe_load(yaml_text_line) end |
Instance Attribute Details
#parameters ⇒ Object
Returns the value of attribute parameters.
4 5 6 |
# File 'lib/almirah/doc_items/frontmatter.rb', line 4 def parameters @parameters end |