Class: Jekyll::RenderIntroBlock

Inherits:
Liquid::Tag
  • Object
show all
Defined in:
lib/MPIWG-Jekyll-Plugin/tag.rb

Instance Method Summary collapse

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