class Jekyll::Secinfo::CweTag

Public Class Methods

new(tagName, text, tokens) click to toggle source
Calls superclass method
# File lib/jekyll-secinfo/cwe.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/cwe.rb, line 36
def render(context)
  cwe_text = @text.strip
  out = Cwe.to_link(cwe_text, context["site"], context["page"])
  return out if out
  return @text
end