Sha256: d47723891825de02858f4c0f7f13a5d2f8043772965f127d0ae3fceb8bbfec1f

Contents?: true

Size: 510 Bytes

Versions: 3

Compression:

Stored size: 510 Bytes

Contents

# frozen_string_literal: true

module Sbmt
  module Pact
    module Matchers
      module V3
        class Boolean < Sbmt::Pact::Matchers::Base
          def initialize(template)
            raise MatcherInitializationError, "#{self.class}: #{template} should be an instance of Boolean" unless template.is_a?(TrueClass) || template.is_a?(FalseClass)

            super(spec_version: Sbmt::Pact::Matchers::PACT_SPEC_V3, kind: "boolean", template: template)
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sbmt-pact-0.12.2 lib/sbmt/pact/matchers/v3/boolean.rb
sbmt-pact-0.12.1 lib/sbmt/pact/matchers/v3/boolean.rb
sbmt-pact-0.12.0 lib/sbmt/pact/matchers/v3/boolean.rb