Class: Liquid::Tag

Inherits:
Object
  • Object
show all
Defined in:
lib/liquid/tag.rb

Direct Known Subclasses

Assign, Block, Cycle, Include

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag_name, markup, tokens) ⇒ Tag

Returns a new instance of Tag.



7
8
9
10
11
# File 'lib/liquid/tag.rb', line 7

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

Instance Attribute Details

#nodelistObject

Returns the value of attribute nodelist.



5
6
7
# File 'lib/liquid/tag.rb', line 5

def nodelist
  @nodelist
end

Instance Method Details

#nameObject



16
17
18
# File 'lib/liquid/tag.rb', line 16

def name
  self.class.name.downcase
end

#parse(tokens) ⇒ Object



13
14
# File 'lib/liquid/tag.rb', line 13

def parse(tokens)
end

#render(context) ⇒ Object



20
21
22
# File 'lib/liquid/tag.rb', line 20

def render(context)
  ''
end