Sha256: 4463b71c420895cab24108a79c477d3080b4e3f19802e0f9edbeb34663eee48c

Contents?: true

Size: 316 Bytes

Versions: 21

Compression:

Stored size: 316 Bytes

Contents

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
fakes-1.1.2 lib/fakes/arg_matching/arg_match_factory.rb
fakes-1.0.31 lib/core/arg_matching/arg_match_factory.rb
fakes-1.0.30 lib/core/arg_matching/arg_match_factory.rb
fakes-1.0.25 lib/core/arg_matching/arg_match_factory.rb
fakes-1.1.1 lib/fakes/arg_matching/arg_match_factory.rb
fakes-1.0.24 lib/core/arg_matching/arg_match_factory.rb
fakes-1.0.22 lib/core/arg_matching/arg_match_factory.rb
fakes-1.1.0 lib/fakes/arg_matching/arg_match_factory.rb
fakes-1.0.9 lib/fakes/arg_matching/arg_match_factory.rb
fakes-1.0.8 lib/fakes/arg_matching/arg_match_factory.rb
fakes-1.0.7 lib/fakes/arg_matching/arg_match_factory.rb
fakes-1.0.6 lib/fakes/arg_matching/arg_match_factory.rb
fakes-1.0.5 lib/core/arg_matching/arg_match_factory.rb
fakes-1.0.2 lib/core/arg_matching/arg_match_factory.rb
fakes-1.0.1 lib/core/arg_matching/arg_match_factory.rb
fakes-1.0.0 lib/core/arg_matching/arg_match_factory.rb
fakes-0.4.1 lib/core/arg_matching/arg_match_factory.rb
fakes-0.4.0 lib/core/arg_matching/arg_match_factory.rb
fakes-0.3.8 lib/core/arg_matching/arg_match_factory.rb
fakes-0.3.7 lib/core/arg_matching/arg_match_factory.rb