Class: Mutest::Matcher::Compiler::SubjectPrefix Private
- Inherits:
-
Object
- Object
- Mutest::Matcher::Compiler::SubjectPrefix
- Defined in:
- lib/mutest/matcher/compiler.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
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
31 32 33 |
# File 'lib/mutest/matcher/compiler.rb', line 31 def call(subject) expression.prefix?(subject.expression) end |