Class: Liquid::Interrupt
- Inherits:
-
Object
- Object
- Liquid::Interrupt
- Defined in:
- lib/liquid/interrupts.rb
Overview
An interrupt is any command that breaks processing of a block (ex: a for loop).
Direct Known Subclasses
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ Interrupt
constructor
A new instance of Interrupt.
Constructor Details
#initialize(message = nil) ⇒ Interrupt
Returns a new instance of Interrupt.
6 7 8 |
# File 'lib/liquid/interrupts.rb', line 6 def initialize( = nil) @message = || "interrupt".freeze end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
4 5 6 |
# File 'lib/liquid/interrupts.rb', line 4 def @message end |