Class: Gobstones::Lang::Opuesto
- Inherits:
-
OneArgExpression
- Object
- Expression
- OneArgExpression
- Gobstones::Lang::Opuesto
- Defined in:
- lib/gobstones/lang/expressions/primitive_functions.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
73 74 75 |
# File 'lib/gobstones/lang/expressions/primitive_functions.rb', line 73 def evaluate(context) with_evaluated_argument_in(context, &:opposite) end |
#to_s ⇒ Object
77 78 79 |
# File 'lib/gobstones/lang/expressions/primitive_functions.rb', line 77 def to_s 'opuesto() expression' end |