Sha256: cb6c9101dfabda61d3ec467eeb5e37d7494d38099698806473ff3a1cffff2507
Contents?: true
Size: 601 Bytes
Versions: 2
Compression:
Stored size: 601 Bytes
Contents
require 'singleton' module Feedbook module Notifiers class NullNotifier include Singleton # Sends notification to Nil # @param message [String] message to be displayed in console # # @return [NilClass] nil def notify(message) puts "New message has been notified: #{message}" end # Load configuration for NullNotifier # @param configuration = {} [Hash] Configuration hash # # @return [NilClass] nil def load_configuration(_) puts 'Configuration loaded for NullNotifier' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
feedbook-1.1.0 | lib/feedbook/notifiers/null_notifier.rb |
feedbook-1.0.0 | lib/feedbook/notifiers/null_notifier.rb |