Class: Liquid::Continue
Overview
Continue tag to be used to break out of a for loop.
Basic Usage:
{% for item in collection %}
{% if item.condition %}
{% continue %}
{% endif %}
{% endfor %}
Instance Attribute Summary
Attributes inherited from Tag
#line_number, #nodelist, #parse_context, #tag_name
Instance Method Summary collapse
Methods inherited from Tag
#blank?, #initialize, #name, parse, #parse, #raw, #render
Methods included from ParserSwitching
Constructor Details
This class inherits a constructor from Liquid::Tag
Instance Method Details
#interrupt ⇒ Object
12 13 14 |
# File 'lib/liquid/tags/continue.rb', line 12 def interrupt ContinueInterrupt.new end |