Class: Gobstones::Lang::EnclosedByParensExpression
- Inherits:
-
OneArgExpression
- Object
- Expression
- OneArgExpression
- Gobstones::Lang::EnclosedByParensExpression
- Defined in:
- lib/gobstones/lang/expressions/enclosed_by_parens_expression.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
6 7 8 |
# File 'lib/gobstones/lang/expressions/enclosed_by_parens_expression.rb', line 6 def evaluate(context) with_evaluated_argument_in(context) { |result| result } end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/gobstones/lang/expressions/enclosed_by_parens_expression.rb', line 10 def to_s 'Expression enclosed in parentheses' end |