Class: Liquid::Tag

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Tag.



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

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.



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

def context
  @context
end

#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



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

def name
  self.class.name.downcase
end

#parse(tokens) ⇒ Object



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

def parse(tokens)
end

#render(context) ⇒ Object



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

def render(context)
  ''
end