Sha256: 2da4702c494401accabf6dc27525e571944e423b58112960f471acd4730ca421

Contents?: true

Size: 538 Bytes

Versions: 20

Compression:

Stored size: 538 Bytes

Contents

module Shoulda
  module Matchers
    # @private
    def self.configure
      yield configuration
    end

    # @private
    def self.integrations
      configuration.integrations
    end

    # @private
    def self.configuration
      @_configuration ||= Configuration.new
    end

    # @private
    class Configuration
      attr_reader :integrations

      def initialize
        @integrations = nil
      end

      def integrate(&block)
        @integrations = Integrations::Configuration.apply(&block)
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
shoulda-matchers-6.4.0 lib/shoulda/matchers/configuration.rb
shoulda-matchers-6.3.1 lib/shoulda/matchers/configuration.rb
shoulda-matchers-6.3.0 lib/shoulda/matchers/configuration.rb
shoulda-matchers-6.2.0 lib/shoulda/matchers/configuration.rb
shoulda-matchers-6.1.0 lib/shoulda/matchers/configuration.rb
shoulda-matchers-6.0.0 lib/shoulda/matchers/configuration.rb
shoulda-matchers-5.3.0 lib/shoulda/matchers/configuration.rb
shoulda-matchers-5.2.0 lib/shoulda/matchers/configuration.rb
shoulda-matchers-5.1.0 lib/shoulda/matchers/configuration.rb
shoulda-matchers-5.0.0 lib/shoulda/matchers/configuration.rb
shoulda-matchers-5.0.0.rc1 lib/shoulda/matchers/configuration.rb
shoulda-matchers-4.5.1 lib/shoulda/matchers/configuration.rb
shoulda-matchers-4.5.0 lib/shoulda/matchers/configuration.rb
shoulda-matchers-4.4.1 lib/shoulda/matchers/configuration.rb
shoulda-matchers-4.4.0 lib/shoulda/matchers/configuration.rb
shoulda-matchers-4.3.0 lib/shoulda/matchers/configuration.rb
shoulda-matchers-4.2.0 lib/shoulda/matchers/configuration.rb
shoulda-matchers-4.1.2 lib/shoulda/matchers/configuration.rb
shoulda-matchers-4.1.1 lib/shoulda/matchers/configuration.rb
shoulda-matchers-4.1.0 lib/shoulda/matchers/configuration.rb