Class: Liquid2::Comment

Inherits:
Node
  • Object
show all
Defined in:
lib/liquid2/nodes/comment.rb

Overview

{# comment #} style comments.

Instance Attribute Summary collapse

Attributes inherited from Node

#blank, #token

Instance Method Summary collapse

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.

Parameters:



11
12
13
14
# File 'lib/liquid2/nodes/comment.rb', line 11

def initialize(token, text)
  super(token)
  @text = text
end

Instance Attribute Details

#textObject (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