# frozen_string_literal: true module Sbmt module Pact module Matchers module V3 class Decimal < Sbmt::Pact::Matchers::Base def initialize(template) raise MatcherInitializationError, "#{self.class}: #{template} should be an instance of Float" unless template.is_a?(Float) super(spec_version: Sbmt::Pact::Matchers::PACT_SPEC_V3, kind: "decimal", template: template) end end end end end end