Class: TheLocal::FrontMatter

Inherits:
Object
  • Object
show all
Defined in:
lib/the_local/front_matter.rb

Constant Summary collapse

BLOCK =
/\A---\n.*?\n---\n/m

Instance Method Summary collapse

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

#scopeObject



13
14
15
# File 'lib/the_local/front_matter.rb', line 13

def scope
  parsed["scope"]
end