Class: Jekyll::EpubBlock
- Inherits:
-
Liquid::Block
- Object
- Liquid::Block
- Jekyll::EpubBlock
- Includes:
- Liquid::StandardFilters
- Defined in:
- lib/jekyll/tags/epub.rb
Instance Method Summary collapse
-
#initialize(tag_name, markup, tokens) ⇒ EpubBlock
constructor
A new instance of EpubBlock.
- #render(context) ⇒ Object
Constructor Details
#initialize(tag_name, markup, tokens) ⇒ EpubBlock
Returns a new instance of EpubBlock.
5 6 7 |
# File 'lib/jekyll/tags/epub.rb', line 5 def initialize(tag_name, markup, tokens) super end |
Instance Method Details
#render(context) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/jekyll/tags/epub.rb', line 9 def render(context) if context.registers[:site].config["epub"] super else "" end end |