Sha256: e7823de8ed60bab3059bd9515d0ced82343ef9f3c8e77f1e64b9a5096c8b00a1
Contents?: true
Size: 637 Bytes
Versions: 3
Compression:
Stored size: 637 Bytes
Contents
# frozen_string_literal: true module Sbmt module Pact module Matchers module V3 class Date < Sbmt::Pact::Matchers::Base def initialize(format, template) raise MatcherInitializationError, "#{self.class}: #{format} should be an instance of String" unless template.is_a?(String) raise MatcherInitializationError, "#{self.class}: #{template} should be an instance of String" unless template.is_a?(String) super(spec_version: Sbmt::Pact::Matchers::PACT_SPEC_V3, kind: "date", template: template, opts: {format: format}) 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/date.rb |
sbmt-pact-0.12.1 | lib/sbmt/pact/matchers/v3/date.rb |
sbmt-pact-0.12.0 | lib/sbmt/pact/matchers/v3/date.rb |