Class: Mutant::Matcher::Compiler::SubjectPrefix
- Inherits:
-
Object
- Object
- Mutant::Matcher::Compiler::SubjectPrefix
- Defined in:
- lib/mutant/matcher/compiler.rb
Overview
Subject expression prefix predicate
Instance Method Summary collapse
-
#call(subject) ⇒ Boolean
private
Test if subject expression is matched by prefix.
Instance Method Details
#call(subject) ⇒ Boolean
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.
Test if subject expression is matched by prefix
34 35 36 |
# File 'lib/mutant/matcher/compiler.rb', line 34 def call(subject) expression.prefix?(subject.expression) end |