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