Sha256: 28b49b62a18a2c21911ae39bc675e65de6d1499f7fc156a3d31fa5859e5836fd

Contents?: true

Size: 663 Bytes

Versions: 21

Compression:

Stored size: 663 Bytes

Contents

module Mutant
  class Matcher
    # Matcher for specific namespace
    class Scope < self
      include Concord::Public.new(:cache, :scope)

      MATCHERS = [
        Matcher::Methods::Singleton,
        Matcher::Methods::Instance
      ].freeze

      # Enumerate subjects
      #
      # @return [self]
      #   if block given
      #
      # @return [Enumerator<Subject>]
      #   otherwise
      #
      # @api private
      #
      def each(&block)
        return to_enum unless block_given?

        MATCHERS.each do |matcher|
          matcher.each(cache, scope, &block)
        end

        self
      end

    end # Scope
  end # Matcher
end # Mutant

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
mutant-0.5.23 lib/mutant/matcher/scope.rb
mutant-0.5.22 lib/mutant/matcher/scope.rb
mutant-0.5.21 lib/mutant/matcher/scope.rb
mutant-0.5.20 lib/mutant/matcher/scope.rb
mutant-0.3.0.beta21 lib/mutant/matcher/scope.rb
mutant-0.3.0.beta20 lib/mutant/matcher/scope.rb
mutant-0.3.0.beta19 lib/mutant/matcher/scope.rb
mutant-0.3.0.beta18 lib/mutant/matcher/scope.rb
mutant-0.3.0.beta17 lib/mutant/matcher/scope.rb
mutant-0.3.0.beta16 lib/mutant/matcher/scope.rb
mutant-0.3.0.beta15 lib/mutant/matcher/scope.rb
mutant-0.3.0.beta14 lib/mutant/matcher/scope.rb
mutant-0.3.0.beta13 lib/mutant/matcher/scope.rb
mutant-0.3.0.beta12 lib/mutant/matcher/scope.rb
mutant-0.3.0.beta11 lib/mutant/matcher/scope.rb
mutant-0.3.0.beta10 lib/mutant/matcher/scope.rb
mutant-0.3.0.beta9 lib/mutant/matcher/scope.rb
mutant-0.3.0.beta8 lib/mutant/matcher/scope.rb
mutant-0.3.0.beta7 lib/mutant/matcher/scope.rb
mutant-0.3.0.beta6 lib/mutant/matcher/scope.rb