Class: Optimus::ParsedCalculator::KeywordPrefixExpr

Inherits:
PrefixExpr show all
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

Expr::BINARY_OPERATORS

Instance Attribute Summary

Attributes inherited from PrefixExpr

#op, #right

Instance Method Summary collapse

Methods inherited from PrefixExpr

#evaluate, #initialize

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_sObject



97
98
99
# File 'lib/expression_parser/expressions.rb', line 97

def to_s
  "#{@op} (#{@right})"
end