mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
Remove reserved word Interrupt to avoid confusion
Also resolves rubocop conflicts
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
module Liquid
|
||||
# An interrupt is any command that breaks processing of a block (ex: a for loop).
|
||||
class Interrupt
|
||||
# A block interrupt is any command that breaks processing of a block (ex: a for loop).
|
||||
class BlockInterrupt
|
||||
attr_reader :message
|
||||
|
||||
def initialize(message = nil)
|
||||
@@ -9,8 +9,8 @@ module Liquid
|
||||
end
|
||||
|
||||
# Interrupt that is thrown whenever a {% break %} is called.
|
||||
class BreakInterrupt < RuntimeError; end
|
||||
class BreakInterrupt < BlockInterrupt; end
|
||||
|
||||
# Interrupt that is thrown whenever a {% continue %} is called.
|
||||
class ContinueInterrupt < RuntimeError; end
|
||||
class ContinueInterrupt < BlockInterrupt; end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user