Sha256: d771f7595483d84c92d34e8d3dd54498612dc06b749760ce1c8ff9590dd5d0d1

Contents?: true

Size: 476 Bytes

Versions: 3

Compression:

Stored size: 476 Bytes

Contents

# frozen_string_literal: true

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

            super(spec_version: Sbmt::Pact::Matchers::PACT_SPEC_V3, kind: "number", 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/number.rb
sbmt-pact-0.12.1 lib/sbmt/pact/matchers/v3/number.rb
sbmt-pact-0.12.0 lib/sbmt/pact/matchers/v3/number.rb