Sha256: ade20e5c0406ffb2fc29ee6daae70b601ac2c68f860f3512abf54a814864f6ec
Contents?: true
Size: 676 Bytes
Versions: 19
Compression:
Stored size: 676 Bytes
Contents
module Timber # Base class for `Timber::Integrations::*`. # # @private class Integrator class RequirementNotMetError < StandardError; end class << self def integrate!(*args) new(*args).integrate! Config.instance.debug_logger.debug("Integrated #{name}") if Config.instance.debug_logger true # RequirementUnsatisfiedError is the only silent failure we support rescue RequirementNotMetError => e Config.instance.debug_logger.debug("Failed integrating #{name}: #{e.message}") if Config.instance.debug_logger false end end def integrate! raise NotImplementedError.new end end end
Version data entries
19 entries across 19 versions & 1 rubygems