Class: Frontmatter

Inherits:
Object
  • Object
show all
Defined in:
lib/almirah/doc_items/frontmatter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#parametersObject

Returns the value of attribute parameters.



4
5
6
# File 'lib/almirah/doc_items/frontmatter.rb', line 4

def parameters
  @parameters
end