Class: Jekyll::RenderIntroBlock
- Inherits:
-
Liquid::Tag
- Object
- Liquid::Tag
- Jekyll::RenderIntroBlock
- Defined in:
- lib/MPIWG-Jekyll-Plugin/tag.rb
Instance Method Summary collapse
-
#initialize(tag_name, text, tokens) ⇒ RenderIntroBlock
constructor
A new instance of RenderIntroBlock.
- #render(context) ⇒ Object
Constructor Details
#initialize(tag_name, text, tokens) ⇒ RenderIntroBlock
Returns a new instance of RenderIntroBlock.
4 5 6 7 |
# File 'lib/MPIWG-Jekyll-Plugin/tag.rb', line 4 def initialize(tag_name, text, tokens) super @text = text end |
Instance Method Details
#render(context) ⇒ Object
10 11 12 |
# File 'lib/MPIWG-Jekyll-Plugin/tag.rb', line 10 def render(context) "<p class='intro'>#{ @text }</p>" end |