Sha256: 0cae4c6ddc565507282487a4004b4117b1c17729399ef9ab2f4a866a87a3852b
Contents?: true
Size: 423 Bytes
Versions: 3
Compression:
Stored size: 423 Bytes
Contents
# frozen_string_literal: true class UniformNotifier class Raise < Base def self.active? @exception_class end def self.setup_connection(exception_class) @exception_class = exception_class == true ? Exception : exception_class end protected def self._out_of_channel_notify(data) message = data.values.compact.join("\n") raise @exception_class, message end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
uniform_notifier-1.13.0 | lib/uniform_notifier/raise.rb |
uniform_notifier-1.12.1 | lib/uniform_notifier/raise.rb |
uniform_notifier-1.12.0 | lib/uniform_notifier/raise.rb |