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.
8 9 10 |
# File 'lib/liquid/interrupts.rb', line 8 def initialize( = nil) @message = || "interrupt" end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/liquid/interrupts.rb', line 6 def @message end |