Class: Liquid::Tag

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

Direct Known Subclasses

Assign, Block, Cycle, DefaultContent, Include

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag_name, markup, tokens, context) ⇒ Tag

Returns a new instance of Tag.



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

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

Instance Attribute Details

#contextObject

Returns the value of attribute context.



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

def context
  @context
end

#nodelistObject

Returns the value of attribute nodelist.



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

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