Class: Gobstones::Lang::Not
- Inherits:
-
OneArgExpression
- Object
- Expression
- OneArgExpression
- Gobstones::Lang::Not
- Defined in:
- lib/gobstones/lang/expressions/boolean_expressions.rb
Instance Attribute Summary
Attributes inherited from OneArgExpression
Instance Method Summary collapse
Methods inherited from OneArgExpression
#equality_attributes, #initialize, #with_evaluated_argument_in
Methods inherited from Expression
Methods included from EqualityDefinition
Constructor Details
This class inherits a constructor from Gobstones::Lang::OneArgExpression
Instance Method Details
#evaluate(context) ⇒ Object
7 8 9 |
# File 'lib/gobstones/lang/expressions/boolean_expressions.rb', line 7 def evaluate(context) with_evaluated_argument_in(context, &:not) end |
#to_s ⇒ Object
11 12 13 |
# File 'lib/gobstones/lang/expressions/boolean_expressions.rb', line 11 def to_s 'Not expression' end |