Class: Liquid::Break

### Home Classes Methods

### In Files

- lib/liquid/tags/break.rb

### Parent

Liquid::Tag

### Methods

- #interrupt

### Class/Module Index

Quicksearch

- Liquid
- Liquid::ArgumentError
- Liquid::Assign
- Liquid::BlankFileSystem
- Liquid::Block
- Liquid::Break
- Liquid::BreakInterrupt
- Liquid::Capture
- Liquid::Case
- Liquid::Comment
- Liquid::Context
- Liquid::ContextError
- Liquid::Continue
- Liquid::ContinueInterrupt
- Liquid::Cycle
- Liquid::Decrement
- Liquid::Document
- Liquid::Drop
- Liquid::ElseCondition
- Liquid::Error
- Liquid::FileSystemError
- Liquid::FilterNotFound
- Liquid::For
- Liquid::If
- Liquid::Ifchanged
- Liquid::Include
- Liquid::Increment
- Liquid::Interrupt
- Liquid::LocalFileSystem
- Liquid::MemoryError
- Liquid::Raw
- Liquid::StackLevelError
- Liquid::StandardError
- Liquid::StandardFilters
- Liquid::SyntaxError
- Liquid::TableRow
- Liquid::Tag
- Liquid::Template
- Liquid::Unless
- Liquid::Utils
- Liquid::Variable
- FalseClass
- LiquidView
- Module
- NilClass
- TrueClass

No matching classes.

# 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 14
    def interrupt
      BreakInterrupt.new
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.