Class: Sbmt::Pact::Matchers::V3::Integer
- Defined in:
- lib/sbmt/pact/matchers/v3/integer.rb
Instance Attribute Summary
Attributes inherited from Base
#kind, #opts, #spec_version, #template
Instance Method Summary collapse
-
#initialize(template) ⇒ Integer
constructor
A new instance of Integer.
Methods inherited from Base
Constructor Details
#initialize(template) ⇒ Integer
Returns a new instance of Integer.
8 9 10 11 12 |
# File 'lib/sbmt/pact/matchers/v3/integer.rb', line 8 def initialize(template) raise MatcherInitializationError, "#{self.class}: #{template} should be an instance of Integer" unless template.is_a?(::Integer) super(spec_version: Sbmt::Pact::Matchers::PACT_SPEC_V3, kind: "integer", template: template) end |