Disable interrupt fix in this round

This commit is contained in:
Mike Angell
2019-09-11 06:35:08 +10:00
parent a5b387cdd4
commit 724d02e9b3
2 changed files with 30 additions and 7 deletions
+4 -4
View File
@@ -1,6 +1,6 @@
module Liquid
# A block interrupt is any command that breaks processing of a block (ex: a for loop).
class BlockInterrupt
# An interrupt is any command that breaks processing of a block (ex: a for loop).
class Interrupt
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 < BlockInterrupt; end
class BreakInterrupt < Interrupt; end
# Interrupt that is thrown whenever a {% continue %} is called.
class ContinueInterrupt < BlockInterrupt; end
class ContinueInterrupt < Interrupt; end
end