Class: Jekyll::GitAuthorAllTag
- Inherits:
-
Liquid::Tag
- Object
- Liquid::Tag
- Jekyll::GitAuthorAllTag
- Defined in:
- lib/jekyll-planningwikiplugins.rb
Instance Method Summary collapse
-
#initialize(tag_name, text, tokens) ⇒ GitAuthorAllTag
constructor
A new instance of GitAuthorAllTag.
- #lookup(context, name) ⇒ Object
- #render(context) ⇒ Object
Constructor Details
#initialize(tag_name, text, tokens) ⇒ GitAuthorAllTag
Returns a new instance of GitAuthorAllTag.
21 22 23 24 |
# File 'lib/jekyll-planningwikiplugins.rb', line 21 def initialize(tag_name, text, tokens) super @text = text end |
Instance Method Details
#lookup(context, name) ⇒ Object
26 27 28 29 30 |
# File 'lib/jekyll-planningwikiplugins.rb', line 26 def lookup(context, name) lookup = context name.encode('UTF-8').split(".").each { |value| lookup = lookup[value] } lookup end |
#render(context) ⇒ Object
32 33 34 |
# File 'lib/jekyll-planningwikiplugins.rb', line 32 def render(context) `git log --pretty=format:"%an," . | sort | uniq | grep -v -F "adamgreen,"` end |