Sha256: 97b63ec7304509cb460c71a84af41a309f7a3675cef1379295374a059c932443
Contents?: true
Size: 394 Bytes
Versions: 1
Compression:
Stored size: 394 Bytes
Contents
module WildcardMatchers module Helpers define_wildcard_helper(:all_of) class AllOf < ::WildcardMatchers::WildcardMatcher protected def wildcard_match(actual) errors = expectation.map do |e| self.class.superclass.check_errors(actual, e) end.flatten unless errors.empty? @errors = errors 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/all_of.rb |