Sha256: c7f725bf0a2a320ec4b64096d0c7f1b97fe10d95047fee19f100b39971998849

Contents?: true

Size: 326 Bytes

Versions: 4

Compression:

Stored size: 326 Bytes

Contents

module Fakes
  class ArgMatchFactory
    def self.create_arg_matcher_using(args)
      combined_matcher = CombinedArgMatcher.new      
      args.each do|arg|
        matcher = arg.respond_to?(:matches?) ? arg : RegularArgMatcher.new(arg)
        combined_matcher << matcher
      end
      combined_matcher
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fakes-1.1.6 lib/fakes/arg_matching/arg_match_factory.rb
fakes-1.1.5 lib/fakes/arg_matching/arg_match_factory.rb
fakes-1.1.4 lib/fakes/arg_matching/arg_match_factory.rb
fakes-1.1.3 lib/fakes/arg_matching/arg_match_factory.rb