Sha256: 0303ca3ca2720aa86cb8c91d3132edbc267881cfe2c7816c4b13bd729b0033b5
Contents?: true
Size: 488 Bytes
Versions: 1
Compression:
Stored size: 488 Bytes
Contents
# frozen_string_literal: true module NotificationHandler class << self attr_accessor :configuration end def self.configure self.configuration ||= Configuration.new yield configuration end class Configuration attr_accessor :groups attr_accessor :cache def initialize @groups = [] @cache = false end def define_group(name, target_scope) groups << ::NotificationHandler::Group.new(name.to_sym, target_scope) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
notification-handler-1.2.6 | lib/notification_handler/configuration.rb |