Sha256: fe3ded7016c06edd03144bd249addf4511ddbb70a116c8100a0c4066abdec361

Contents?: true

Size: 506 Bytes

Versions: 2

Compression:

Stored size: 506 Bytes

Contents

module NotificationHandler

    class << self
        attr_accessor :configuration
    end

    def self.configure
        self.configuration ||= Configuration.new
        yield configuration
    end

    class Configuration

        attr_accessor :cache

        def initialize
            @cache = false
        end

        def define_group name, target_scope
            ::NotificationHandler::Group.new name: name.to_sym, target_scope: target_scope
        end

    end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
notification-handler-1.0.0.beta8 lib/notification_handler/configuration.rb
notification-handler-1.0.0.beta7 lib/notification_handler/configuration.rb