Class: JekyllRPG::RenderDMContent
- Inherits:
-
Liquid::Block
- Object
- Liquid::Block
- JekyllRPG::RenderDMContent
- Defined in:
- lib/jekyll-rpg.rb
Overview
DM tag to hide content
Instance Method Summary collapse
Instance Method Details
#render(context) ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/jekyll-rpg.rb', line 18 def render(context) text = '' if context.registers[:site].config['dm_mode'] text += "> # DM Note: \n" super.each_line do |line| text += '>> ' + line end end text end |