Class: Liquid2::ContinueTag

Inherits:
Tag
  • Object
show all
Defined in:
lib/liquid2/nodes/tags/for.rb

Overview

The standard continue tag.

Instance Attribute Summary

Attributes inherited from Node

#blank, #token

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Tag

#initialize, #name

Methods inherited from Node

#block_scope, #children, #expressions, #initialize, #partial_scope, #render_with_disabled_tag_check, #template_scope

Constructor Details

This class inherits a constructor from Liquid2::Tag

Class Method Details

.parse(token, parser) ⇒ Object



97
98
99
100
101
# File 'lib/liquid2/nodes/tags/for.rb', line 97

def self.parse(token, parser)
  parser.carry_whitespace_control
  parser.eat(:token_tag_end)
  new(token)
end

Instance Method Details

#render(context, _buffer) ⇒ Object



103
104
105
# File 'lib/liquid2/nodes/tags/for.rb', line 103

def render(context, _buffer)
  context.interrupts << :continue
end