Class: Sbmt::Pact::Matchers::V4::NotEmpty
- Defined in:
- lib/sbmt/pact/matchers/v4/not_empty.rb
Instance Attribute Summary
Attributes inherited from Base
#kind, #opts, #spec_version, #template
Instance Method Summary collapse
-
#initialize(template) ⇒ NotEmpty
constructor
A new instance of NotEmpty.
Methods inherited from Base
Constructor Details
#initialize(template) ⇒ NotEmpty
Returns a new instance of NotEmpty.
8 9 10 11 12 |
# File 'lib/sbmt/pact/matchers/v4/not_empty.rb', line 8 def initialize(template) raise MatcherInitializationError, "#{self.class}: #{template} should not be empty" if template.blank? super(spec_version: Sbmt::Pact::Matchers::PACT_SPEC_V4, kind: "time", template: template) end |