Sha256: f000d599aa174b154281a513b7b05278cb86997d646f3b1a518eff923b5d4983
Contents?: true
Size: 407 Bytes
Versions: 1
Compression:
Stored size: 407 Bytes
Contents
module WildcardMatchers module Helpers define_wildcard_helper(:any_of) class AnyOf < ::WildcardMatchers::WildcardMatcher protected def wildcard_match(actual) errors = expectation.map do |e| self.class.superclass.check_errors(actual, e) end unless errors.any? {|e| e == [] } @errors = errors.flatten end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wildcard_matchers-0.4.0 | lib/wildcard_matchers/helpers/any_of.rb |