Class: Rosette::Core::NilErrorReporter

Inherits:
ErrorReporter show all
Defined in:
lib/rosette/core/error_reporters/nil_error_reporter.rb

Overview

An error reporter that does nothing.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ErrorReporter

#with_error_reporting

Class Method Details

.instanceNilErrorReporter

Get a reference to the only instance of NilErrorReporter.

Returns:


11
12
13
# File 'lib/rosette/core/error_reporters/nil_error_reporter.rb', line 11

def self.instance
  @instance ||= new
end

Instance Method Details

#report_error(error, options = {}) ⇒ nil

Does nothing.

Returns:

  • (nil)

17
# File 'lib/rosette/core/error_reporters/nil_error_reporter.rb', line 17

def report_error(error, options = {}); end

#report_warning(error, options = {}) ⇒ nil

Does nothing.

Returns:

  • (nil)

21
# File 'lib/rosette/core/error_reporters/nil_error_reporter.rb', line 21

def report_warning(error, options = {}); end