class Jekyll::Secinfo::CveTag

Public Class Methods

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

Public Instance Methods

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