Class: WildcardMatchers::Helpers::AllOf

Inherits:
WildcardMatcher show all
Defined in:
lib/wildcard_matchers/helpers/all_of.rb

Instance Attribute Summary

Attributes inherited from WildcardMatcher

#errors, #expectation, #position

Instance Method Summary collapse

Methods inherited from WildcardMatcher

#===, check_errors, #initialize, #|

Constructor Details

This class inherits a constructor from WildcardMatchers::WildcardMatcher

Instance Method Details

#&(matcher) ⇒ Object



6
7
8
9
# File 'lib/wildcard_matchers/helpers/all_of.rb', line 6

def &(matcher)
  expectation.push(matcher)
  self
end