Sha256: 5fb2f40bb47e4f133c7882f527e078ec070b2ff542d3a658a5eb7429331126ba

Contents?: true

Size: 491 Bytes

Versions: 2

Compression:

Stored size: 491 Bytes

Contents

# frozen_string_literal: true

module NotificationRenderer
  class << self
    attr_writer :configuration

    def configuration
      @configuration ||= Configuration.new
    end
  end

  def self.configure
    yield configuration
  end

  class Configuration
    attr_accessor :default_type
    attr_accessor :default_renderer
    attr_accessor :auto_read

    def initialize
      @default_type = 'notification'
      @default_renderer = 'index'
      @auto_read = true
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
notification-renderer-3.0.2 lib/notification_renderer/configuration.rb
notification-renderer-2.0.0 lib/notification_renderer/configuration.rb