Sha256: 0ec69415e1f5ed7cc8542a29513c48968735a801d74369364dc3d44928e578fe

Contents?: true

Size: 293 Bytes

Versions: 4

Compression:

Stored size: 293 Bytes

Contents

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

  def self.configure
    yield(configuration)
  end

  class Configuration
    def initialize
      @options = {}
    end

    def options
      @options.merge!(record_errors: true)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
json_matchers-0.8.0 lib/json_matchers/configuration.rb
json_matchers-0.7.3 lib/json_matchers/configuration.rb
json_matchers-0.7.2 lib/json_matchers/configuration.rb
json_matchers-0.7.1 lib/json_matchers/configuration.rb