Sha256: 764a9d823e7d3221094421e9387d6fa6e4919f2aa83de54739089da4d759ab34

Contents?: true

Size: 662 Bytes

Versions: 14

Compression:

Stored size: 662 Bytes

Contents

require "about_page/engine"
require "about_page/configuration"
require "about_page/dependencies"
require "about_page/environment"
require "about_page/request_environment"

module AboutPage
  autoload :Fedora, "about_page/fedora"
  autoload :Solr, "about_page/solr"

  def self.configuration_blocks
    @configuration_blocks ||= []
  end

  def self.configure &block
    self.configuration_blocks << block
  end

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

    self.configuration_blocks.delete_if do |block|
      block.call(@configuration)
      true
    end

    @configuration
  end

  def self.reset!
    @configuration = nil
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
about_page-0.2.7 lib/about_page.rb
about_page-0.2.6 lib/about_page.rb
about_page-0.2.5 lib/about_page.rb
about_page-0.2.4 lib/about_page.rb
about_page-0.2.3 lib/about_page.rb
about_page-0.2.2 lib/about_page.rb
about_page-0.2.1 lib/about_page.rb
about_page-0.2.0 lib/about_page.rb
about_page-0.1.1 lib/about_page.rb
about_page-0.1.0 lib/about_page.rb
about_page-0.0.7 lib/about_page.rb
about_page-0.0.6 lib/about_page.rb
about_page-0.0.5 lib/about_page.rb
about_page-0.0.4 lib/about_page.rb