Sha256: e96e47d488e024ce846c74990954cd87b23c15656f5ea8b14f1cba940fc8837c
Contents?: true
Size: 595 Bytes
Versions: 58
Compression:
Stored size: 595 Bytes
Contents
require 'honeybadger/backend/null' module Honeybadger module Backend class Test < Null # Public: The notification list. # # Examples: # # Test.notifications[:notices] # => [Notice, Notice, ...] # # Returns the Hash notifications. def self.notifications @notifications ||= Hash.new {|h,k| h[k] = [] } end # Internal: Local helper. def notifications self.class.notifications end def notify(feature, payload) notifications[feature] << payload super end end end end
Version data entries
58 entries across 58 versions & 2 rubygems