Class: Rage::Configuration::ErrorReporters
- Inherits:
-
Object
- Object
- Rage::Configuration::ErrorReporters
- Defined in:
- lib/rage/configuration.rb
Instance Method Summary collapse
-
#<<(reporter) ⇒ self
(also: #push)
Add a new error reporter.
-
#delete(reporter) ⇒ Object
Remove an error reporter.
Instance Method Details
#<<(reporter) ⇒ self Also known as: push
Add a new error reporter.
Error reporters should respond to #call and accept one of:
call(exception)call(exception, context: {})
419 420 421 422 423 424 425 426 427 |
# File 'lib/rage/configuration.rb', line 419 def <<(reporter) validate_input!(reporter) return self if @objects.include?(reporter) @objects << reporter Rage::Errors.__send__(:__register_reporter, reporter) self end |