Sha256: cd60d7a07b43b14af71f8ad00fe62330fd95c1ca69912c1ffef3faa9ba8e0c62

Contents?: true

Size: 559 Bytes

Versions: 11

Compression:

Stored size: 559 Bytes

Contents

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
            self.groups << ::NotificationHandler::Group.new(name.to_sym, target_scope)
        end

    end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
notification-handler-1.2.5 lib/notification_handler/configuration.rb
notification-handler-1.2.4 lib/notification_handler/configuration.rb
notification-handler-1.2.3 lib/notification_handler/configuration.rb
notification-handler-1.2.2 lib/notification_handler/configuration.rb
notification-handler-1.2.1 lib/notification_handler/configuration.rb
notification-handler-1.2.0 lib/notification_handler/configuration.rb
notification-handler-1.1.2 lib/notification_handler/configuration.rb
notification-handler-1.1.1 lib/notification_handler/configuration.rb
notification-handler-1.1.0 lib/notification_handler/configuration.rb
notification-handler-1.0.0 lib/notification_handler/configuration.rb
notification-handler-1.0.0.beta11 lib/notification_handler/configuration.rb