class Jekyll::GitAuthorTag
Public Class Methods
new(tag_name, text, tokens)
click to toggle source
Calls superclass method
# File lib/jekyll-gitauthors.rb, line 3 def initialize(tag_name, text, tokens) super @text = text end
Public Instance Methods
lookup(context, name)
click to toggle source
# File lib/jekyll-gitauthors.rb, line 8 def lookup(context, name) lookup = context name.split(".").each { |value| lookup = lookup[value] } lookup end
render(context)
click to toggle source
# File lib/jekyll-gitauthors.rb, line 14 def render(context) `git log --pretty=format:"%an," #{lookup(context, 'page.path')} | sort | uniq` end