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