Class: Mutant::Matcher::Method
- Inherits:
-
Mutant::Matcher
- Object
- Mutant::Matcher
- Mutant::Matcher::Method
- Includes:
- Adamantium::Flat
- Defined in:
- lib/mutant/matcher/method.rb,
lib/mutant/matcher/method/finder.rb,
lib/mutant/matcher/method/instance.rb,
lib/mutant/matcher/method/singleton.rb
Overview
Matcher for subjects that are a specific method
Defined Under Namespace
Classes: Finder, Instance, Singleton
Constant Summary collapse
- SKIP_METHODS =
Methods within rbx kernel directory are precompiled and their source cannot be accessed via reading source location
%w[kernel/ (eval)].freeze
- BLACKLIST =
/\A#{Regexp.union(*SKIP_METHODS)}/.freeze
Instance Method Summary collapse
-
#each ⇒ Enumerable<Subject>, self
private
Enumerate matches.
Methods inherited from Mutant::Matcher
Instance Method Details
#each ⇒ Enumerable<Subject>, self
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Enumerate matches
24 25 26 27 28 29 30 31 32 |
# File 'lib/mutant/matcher/method.rb', line 24 def each return to_enum unless block_given? if !skip? && subject yield subject end self end |