Class: Jekyll::NoEpubBlock
- Inherits:
-
Liquid::Block
- Object
- Liquid::Block
- Jekyll::NoEpubBlock
- Includes:
- Liquid::StandardFilters
- Defined in:
- lib/jekyll/tags/epub.rb
Instance Method Summary collapse
-
#initialize(tag_name, markup, tokens) ⇒ NoEpubBlock
constructor
A new instance of NoEpubBlock.
- #render(context) ⇒ Object
Constructor Details
#initialize(tag_name, markup, tokens) ⇒ NoEpubBlock
Returns a new instance of NoEpubBlock.
21 22 23 |
# File 'lib/jekyll/tags/epub.rb', line 21 def initialize(tag_name, markup, tokens) super end |
Instance Method Details
#render(context) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/jekyll/tags/epub.rb', line 25 def render(context) if context.registers[:site].config["epub"] "" else super end end |