class JekyllRPG::RenderDMContent

DM tag to hide content

Public Instance Methods

render(context) click to toggle source
Calls superclass method
# 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