Sha256: fad5cfe01e4114740d36a5851ecdf6c18fcee917857ce85253460cbaa171c608

Contents?: true

Size: 696 Bytes

Versions: 6

Compression:

Stored size: 696 Bytes

Contents

require_relative 'common/version'
require_relative 'common/core_ext'
require_relative 'common/attr_extras_ext'
require_relative 'common/logger'
require_relative 'common/exception'
require_relative 'common/notifier'
require_relative 'common/configuration'

require 'active_support'
require 'active_support/concern'
require 'active_support/deprecation'
require 'active_support/core_ext'

module Locomotive
  module Common
    class << self
      attr_writer :configuration
    end

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

    def self.reset
      @configuration = Configuration.new
    end

    def self.configure
      yield(configuration)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
locomotivecms_common-0.4.0 lib/locomotive/common.rb
locomotivecms_common-0.3.1 lib/locomotive/common.rb
locomotivecms_common-0.3.0 lib/locomotive/common.rb
locomotivecms_common-0.2.0 lib/locomotive/common.rb
locomotivecms_common-0.1.0 lib/locomotive/common.rb
locomotivecms_common-0.0.5 lib/locomotive/common.rb