Class: Cucumber::TagExpressions::Not
- Inherits:
-
Object
- Object
- Cucumber::TagExpressions::Not
- Defined in:
- lib/cucumber/tag_expressions/expressions.rb
Overview
Not expression node
Instance Method Summary collapse
- #evaluate(variables) ⇒ Object
-
#initialize(expression) ⇒ Not
constructor
A new instance of Not.
- #to_s ⇒ Object
Constructor Details
#initialize(expression) ⇒ Not
Returns a new instance of Not.
20 21 22 |
# File 'lib/cucumber/tag_expressions/expressions.rb', line 20 def initialize(expression) @expression = expression end |
Instance Method Details
#evaluate(variables) ⇒ Object
24 25 26 |
# File 'lib/cucumber/tag_expressions/expressions.rb', line 24 def evaluate(variables) !@expression.evaluate(variables) end |
#to_s ⇒ Object
28 29 30 |
# File 'lib/cucumber/tag_expressions/expressions.rb', line 28 def to_s "not ( #{@expression} )" end |