Class: JunkDrawer::Notifier::RaiseStrategy

Inherits:
Object
  • Object
show all
Includes:
Callable
Defined in:
lib/junk_drawer/notifier/raise_strategy.rb

Overview

Notifier strategy to raise an error when notification is triggered

Instance Method Summary collapse

Methods included from Callable

included, #to_proc

Instance Method Details

#call(message, **context) ⇒ Object

Raises:



11
12
13
# File 'lib/junk_drawer/notifier/raise_strategy.rb', line 11

def call(message, **context)
  raise NotifierError, "#{message}, context: #{context}"
end