Class: Liquid::Tag
- Inherits:
-
Object
- Object
- Liquid::Tag
- Defined in:
- lib/liquid/tag.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
-
#nodelist ⇒ Object
Returns the value of attribute nodelist.
Instance Method Summary collapse
-
#initialize(tag_name, markup, tokens, context) ⇒ Tag
constructor
A new instance of Tag.
- #name ⇒ Object
- #parse(tokens) ⇒ Object
- #render(context) ⇒ Object
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
#context ⇒ Object
Returns the value of attribute context.
4 5 6 |
# File 'lib/liquid/tag.rb', line 4 def context @context end |
#nodelist ⇒ Object
Returns the value of attribute nodelist.
4 5 6 |
# File 'lib/liquid/tag.rb', line 4 def nodelist @nodelist end |
Instance Method Details
#name ⇒ Object
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 |