Class: WLang::Source::FrontMatter

Inherits:
WLang::Source show all
Defined in:
lib/wlang/source/front_matter.rb

Instance Attribute Summary

Attributes inherited from WLang::Source

#subject, #template

Instance Method Summary collapse

Methods inherited from WLang::Source

#path, #raw_content, #to_str, #with_front_matter

Constructor Details

#initialize(*args, &block) ⇒ FrontMatter



5
6
7
8
# File 'lib/wlang/source/front_matter.rb', line 5

def initialize(*args, &block)
  super
  compile
end

Instance Method Details

#localsObject



10
11
12
# File 'lib/wlang/source/front_matter.rb', line 10

def locals
  @locals
end

#template_contentObject



14
15
16
# File 'lib/wlang/source/front_matter.rb', line 14

def template_content
  @template_content
end