Class: Liquid::Tag
- Inherits:
-
Object
- Object
- Liquid::Tag
- Defined in:
- lib/liquid/tag.rb
Direct Known Subclasses
Assign, Block, Break, Continue, Cycle, Decrement, DefaultContent, Include, Increment
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.
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
#context ⇒ Object
Returns the value of attribute context.
5 6 7 |
# File 'lib/liquid/tag.rb', line 5 def context @context end |
#nodelist ⇒ Object
Returns the value of attribute nodelist.
5 6 7 |
# File 'lib/liquid/tag.rb', line 5 def nodelist @nodelist end |
Instance Method Details
#name ⇒ Object
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 |