Class: Liquid2::Comment
Overview
{# comment #} style comments.
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(token, text) ⇒ Comment
constructor
A new instance of Comment.
- #render(_context, _buffer) ⇒ Object
Methods inherited from Node
#block_scope, #children, #expressions, #partial_scope, #render_with_disabled_tag_check, #template_scope
Constructor Details
#initialize(token, text) ⇒ Comment
Returns a new instance of Comment.
11 12 13 14 |
# File 'lib/liquid2/nodes/comment.rb', line 11 def initialize(token, text) super(token) @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
8 9 10 |
# File 'lib/liquid2/nodes/comment.rb', line 8 def text @text end |
Instance Method Details
#render(_context, _buffer) ⇒ Object
16 |
# File 'lib/liquid2/nodes/comment.rb', line 16 def render(_context, _buffer) = 0 |