class Mutest::Matcher::Scope
Matcher
expanding Mutest::Scope
objects into method matches at singleton or instance level
If we ever get other subjects than methods, its likely the place to hook in custom matchers. In that case the scope matchers to expand should be passed as arguments to the constructor.
Constants
- MATCHERS
Public Instance Methods
call(env)
click to toggle source
Matched subjects
@param [Env::Bootstrap] env
@return [Enumerable<Subject>]
# File lib/mutest/matcher/scope.rb, line 24 def call(env) Chain.new(effective_matchers).call(env) end
Private Instance Methods
effective_matchers()
click to toggle source
Effective matchers
@return [Enumerable<Matcher>]
# File lib/mutest/matcher/scope.rb, line 33 def effective_matchers MATCHERS.map { |matcher| matcher.new(scope) } end