Sha256: b607b063ab64be004eec9fb058acdf2c52ad50049af6fe7bd9562455df1d6fbd

Contents?: true

Size: 360 Bytes

Versions: 15

Compression:

Stored size: 360 Bytes

Contents

module WildcardMatchers
  module Helpers
    define_wildcard_helper(:for_all)

    class ForAll < ::WildcardMatchers::WildcardMatcher
      protected
      def wildcard_match(actual)
        actual.each.with_index do |e, i|
          errors.push(*self.class.superclass.check_errors(e, expectation, position + "[#{i}]"))
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wildcard_matchers-0.9.2 lib/wildcard_matchers/helpers/for_all.rb
wildcard_matchers-0.9.1 lib/wildcard_matchers/helpers/for_all.rb
wildcard_matchers-0.9.0 lib/wildcard_matchers/helpers/for_all.rb
wildcard_matchers-0.4.0 lib/wildcard_matchers/helpers/for_all.rb
wildcard_matchers-0.3.1 lib/wildcard_matchers/helpers/for_all.rb
wildcard_matchers-0.3.0 lib/wildcard_matchers/helpers/for_all.rb
wildcard_matchers-0.2.1 lib/wildcard_matchers/helpers/for_all.rb
wildcard_matchers-0.2.0 lib/wildcard_matchers/helpers/for_all.rb
wildcard_matchers-0.1.8 lib/wildcard_matchers/helpers/for_all.rb
wildcard_matchers-0.1.7 lib/wildcard_matchers/helpers/for_all.rb
wildcard_matchers-0.1.6 lib/wildcard_matchers/helpers/for_all.rb
wildcard_matchers-0.1.5 lib/wildcard_matchers/helpers/for_all.rb
wildcard_matchers-0.1.4 lib/wildcard_matchers/helpers/for_all.rb
wildcard_matchers-0.1.3 lib/wildcard_matchers/helpers/for_all.rb
wildcard_matchers-0.1.2 lib/wildcard_matchers/helpers/for_all.rb