Class: TheLocal::FrontMatter
- Inherits:
-
Object
- Object
- TheLocal::FrontMatter
- Defined in:
- lib/the_local/front_matter.rb
Constant Summary collapse
- BLOCK =
/\A---\n.*?\n---\n/m
Instance Method Summary collapse
-
#initialize(text) ⇒ FrontMatter
constructor
A new instance of FrontMatter.
- #scope ⇒ Object
Constructor Details
#initialize(text) ⇒ FrontMatter
Returns a new instance of FrontMatter.
9 10 11 |
# File 'lib/the_local/front_matter.rb', line 9 def initialize(text) @text = text end |
Instance Method Details
#scope ⇒ Object
13 14 15 |
# File 'lib/the_local/front_matter.rb', line 13 def scope parsed["scope"] end |