Sha256: e32b860f95e28b4143571fe7c1a2e44a1e2a256717d6f6cb82eae4084c0bcaa4
Contents?: true
Size: 556 Bytes
Versions: 1
Compression:
Stored size: 556 Bytes
Contents
# encoding: UTF-8 module Rosette module Core # An error reporter that does nothing. class NilErrorReporter < ErrorReporter # Get a reference to the only instance of +NilErrorReporter+. # # @return [NilErrorReporter] the only instance of +NilErrorReporter+. def self.instance @instance ||= new end # Does nothing. # @return [nil] def report_error(error, options = {}); end # Does nothing. # @return [nil] def report_warning(error, options = {}); end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rosette-core-1.0.1 | lib/rosette/core/error_reporters/nil_error_reporter.rb |