Class: WLang::Source::FrontMatter
- Inherits:
-
WLang::Source
- Object
- WLang::Source
- WLang::Source::FrontMatter
- Defined in:
- lib/wlang/source/front_matter.rb
Instance Attribute Summary
Attributes inherited from WLang::Source
Instance Method Summary collapse
-
#initialize(*args, &block) ⇒ FrontMatter
constructor
A new instance of FrontMatter.
- #locals ⇒ Object
- #template_content ⇒ Object
Methods inherited from WLang::Source
#path, #raw_content, #to_str, #with_front_matter
Constructor Details
#initialize(*args, &block) ⇒ FrontMatter
Returns a new instance of FrontMatter.
5 6 7 8 |
# File 'lib/wlang/source/front_matter.rb', line 5 def initialize(*args, &block) super compile end |
Instance Method Details
#locals ⇒ Object
10 11 12 |
# File 'lib/wlang/source/front_matter.rb', line 10 def locals @locals end |
#template_content ⇒ Object
14 15 16 |
# File 'lib/wlang/source/front_matter.rb', line 14 def template_content @template_content end |