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