Module: LiquidErrorHandler
- Defined in:
- lib/liquid_error_handler.rb,
lib/liquid_error_handler/context.rb,
lib/liquid_error_handler/version.rb
Overview
Configures Liquid error handlers.
Defined Under Namespace
Modules: Context Classes: Error
Constant Summary collapse
- VERSION =
'0.1.0'
Class Attribute Summary collapse
-
.hooks ⇒ Object
readonly
Returns the value of attribute hooks.
Class Method Summary collapse
Class Attribute Details
.hooks ⇒ Object (readonly)
Returns the value of attribute hooks.
27 28 29 |
# File 'lib/liquid_error_handler.rb', line 27 def hooks @hooks end |
Class Method Details
.disabled? ⇒ Boolean
22 23 24 |
# File 'lib/liquid_error_handler.rb', line 22 def self.disabled? ENV.key?('LIQUID_ERROR_HANDLER_DISABLE') end |
.register_handler(&block) ⇒ Object
18 19 20 |
# File 'lib/liquid_error_handler.rb', line 18 def self.register_handler(&block) @hooks << block end |
.reset ⇒ Object
14 15 16 |
# File 'lib/liquid_error_handler.rb', line 14 def self.reset @hooks = [] end |