Class: ChiliProject::Liquid::Tags::Identity

Inherits:
Tag
  • Object
show all
Defined in:
lib/chili_project/liquid/tags/identity.rb

Instance Method Summary collapse

Constructor Details

#initialize(tag_name, markup, tokens) ⇒ Identity


17
18
19
20
21
22
# File 'lib/chili_project/liquid/tags/identity.rb', line 17

def initialize(tag_name, markup, tokens)
  @tag_name = tag_name
  @markup = markup
  @tokens = tokens
  super
end

Instance Method Details

#render(context) ⇒ Object


24
25
26
# File 'lib/chili_project/liquid/tags/identity.rb', line 24

def render(context)
  "{% #{@tag_name} %}"
end