Module: Jekyll::Secinfo::CweFilter
- Defined in:
- lib/jekyll-secinfo/cwe.rb
Instance Method Summary collapse
Instance Method Details
#cwe(cwetxt, niets = nil) ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/jekyll-secinfo/cwe.rb', line 46 def cwe(cwetxt, niets = nil) if cwetxt link = Cwe.to_link(cwetxt, @context.registers[:site].config, @context.registers[:page]) if link return link else return cwetxt end else return "" end end |