class Liquid::Break
Break
tag to be used to break out of a for loop.
Basic Usage:¶ ↑
{% for item in collection %} {% if item.condition %} {% break %} {% endif %} {% endfor %}
Public Instance Methods
interrupt()
click to toggle source
# File lib/liquid/tags/break.rb, line 12 def interrupt BreakInterrupt.new end