Class: MetadataPresenter::ContainsOperator
Instance Attribute Summary
Attributes inherited from BaseOperator
#actual, #expected
Instance Method Summary
collapse
#initialize
Instance Method Details
#evaluate? ⇒ Boolean
3
4
5
|
# File 'app/operators/metadata_presenter/contains_operator.rb', line 3
def evaluate?
@actual == @expected
end
|
#evaluate_collection? ⇒ Boolean
7
8
9
|
# File 'app/operators/metadata_presenter/contains_operator.rb', line 7
def evaluate_collection?
Array(@expected).include?(@actual)
end
|