Class: Optimus::ParsedCalculator::KeywordPrefixExpr
- Inherits:
-
PrefixExpr
- Object
- Expr
- PrefixExpr
- Optimus::ParsedCalculator::KeywordPrefixExpr
- Defined in:
- lib/expression_parser/expressions.rb
Constant Summary
Constants included from Evaluators::Prefix
Evaluators::Prefix::Neg, Evaluators::Prefix::Not, Evaluators::Prefix::OpTable
Constants inherited from Expr
Instance Attribute Summary
Attributes inherited from PrefixExpr
Instance Method Summary collapse
Methods inherited from PrefixExpr
Methods inherited from Expr
#-@, #eq, #logical_and, #logical_not, #logical_or, #neq, #to_bool
Constructor Details
This class inherits a constructor from Optimus::ParsedCalculator::PrefixExpr
Instance Method Details
#to_s ⇒ Object
97 98 99 |
# File 'lib/expression_parser/expressions.rb', line 97 def to_s "#{@op} (#{@right})" end |