Class: Liquid2::BreakTag
Overview
The standard break tag.
Instance Attribute Summary
Attributes inherited from Node
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Tag
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
84 85 86 87 88 |
# File 'lib/liquid2/nodes/tags/for.rb', line 84 def self.parse(token, parser) parser.carry_whitespace_control parser.eat(:token_tag_end) new(token) end |
Instance Method Details
#render(context, _buffer) ⇒ Object
90 91 92 |
# File 'lib/liquid2/nodes/tags/for.rb', line 90 def render(context, _buffer) context.interrupts << :break end |