class Jekyll::AlertBlock
Constants
- HEADER
Public Class Methods
new(tag_name, markup, tokens)
click to toggle source
Calls superclass method
# File doc/plugins/alert_block.rb, line 5 def initialize(tag_name, markup, tokens) @alert_type = tag_name.split('_').first super tag_name, markup + ' alert alert-' + @alert_type, tokens end
Public Instance Methods
render_content(context, content)
click to toggle source
Calls superclass method
# File doc/plugins/alert_block.rb, line 18 def render_content(context, content) super context, "**#{HEADER[@alert_type]}** \n" + content end
tag()
click to toggle source
# File doc/plugins/alert_block.rb, line 10 def tag 'div' end