Class: Jekyll::WebmentionIO::WebmentionCountTag

Inherits:
WebmentionTag
  • Object
show all
Defined in:
lib/jekyll/tags/count.rb

Instance Method Summary collapse

Methods inherited from WebmentionTag

#extract_type, #lookup, #render, #template=

Constructor Details

#initialize(tag_name, text, tokens) ⇒ WebmentionCountTag

Returns a new instance of WebmentionCountTag.



15
16
17
18
19
# File 'lib/jekyll/tags/count.rb', line 15

def initialize(tag_name, text, tokens)
  super
  @text = text
  self.template = "count"
end

Instance Method Details

#set_data(data, types) ⇒ Object



21
22
23
# File 'lib/jekyll/tags/count.rb', line 21

def set_data(data, types)
  @data = { "count" => data.length, "types" => types }
end