Class: OrMatcher
Instance Method Summary
collapse
Methods inherited from Matcher
#initialize
Constructor Details
This class inherits a constructor from Matcher
Instance Method Details
#match(obj) ⇒ Object
73
74
75
76
77
78
79
80
|
# File 'lib/matcher.rb', line 73
def match(obj)
does_it_match = false
@query.values.first.each do |subquery|
matcher = Matcher.new(subquery)
does_it_match ||= matcher.match(obj)
end
return does_it_match
end
|