Class: Mutant::Predicate

Inherits:
Object
  • Object
show all
Extended by:
DescendantsTracker
Includes:
AbstractType, Adamantium::Flat
Defined in:
lib/mutant/predicate.rb,
lib/mutant/predicate/matcher.rb,
lib/mutant/predicate/attribute.rb,
lib/mutant/predicate/blacklist.rb,
lib/mutant/predicate/whitelist.rb

Overview

Abstract base class for predicates used to filter subjects / mutations

Direct Known Subclasses

Attribute, Blacklist, Matcher, Whitelist

Defined Under Namespace

Classes: Attribute, Blacklist, Matcher, Whitelist

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.handle(_notation) ⇒ nil

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.

Return predicate for handle

Parameters:

  • _notation (String)

Returns:

  • (nil)


31
32
33
# File 'lib/mutant/predicate.rb', line 31

def self.handle(_notation)
  nil
end

Instance Method Details

#match?true, false

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.

Check for match

Parameters:

  • object (Object)

Returns:

  • (true)

    if object is matched by predicate

  • (false)

    otherwise



21
# File 'lib/mutant/predicate.rb', line 21

abstract_method :match?