Class: MetadataPresenter::IsNotOperator
- Inherits:
-
BaseOperator
- Object
- BaseOperator
- MetadataPresenter::IsNotOperator
- Defined in:
- app/operators/metadata_presenter/is_not_operator.rb
Instance Attribute Summary
Attributes inherited from BaseOperator
Instance Method Summary collapse
Methods inherited from BaseOperator
Constructor Details
This class inherits a constructor from MetadataPresenter::BaseOperator
Instance Method Details
#evaluate? ⇒ Boolean
3 4 5 |
# File 'app/operators/metadata_presenter/is_not_operator.rb', line 3 def evaluate? @actual != @expected end |
#evaluate_collection? ⇒ Boolean
7 8 9 |
# File 'app/operators/metadata_presenter/is_not_operator.rb', line 7 def evaluate_collection? Array(@expected).exclude?(@actual) end |