Sha256: 3094c9568479f8625f5797a092d4256a50edf145a85251de514469344c113e02
Contents?: true
Size: 594 Bytes
Versions: 1
Compression:
Stored size: 594 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
honeybadger-3.2.0.beta1 | lib/honeybadger/backend/test.rb |