class Jekyll::Secinfo::DivdTag

Public Class Methods

new(tagName, text, tokens) click to toggle source
Calls superclass method
# File lib/jekyll-secinfo/divd.rb, line 32
def initialize(tagName, text, tokens)
  super
  @text = text
end

Public Instance Methods

render(context) click to toggle source
# File lib/jekyll-secinfo/divd.rb, line 37
def render(context)
  divd_text = @text.strip
  out = Divd.to_link(divd_text, context["site"], context["page"])
  return out if out
  return @text
end