class Jekyll::PlannerTag
Public Class Methods
new(tag_name, text, tokens)
click to toggle source
Calls superclass method
# File lib/jekyll-planningwikiplugins.rb, line 37 def initialize(tag_name, text, tokens) super @text = text end
Public Instance Methods
render(context)
click to toggle source
# File lib/jekyll-planningwikiplugins.rb, line 42 def render(context) #Split by space tags = @text.split(' ') result = "tags: " tags.each do |tag| result = "#{result} <a href=\"/ref/planners/tags/#{tag.downcase}\">#{tag}</a>" end result end