Class: FEEL::Exponentiation
- Defined in:
- lib/feel/nodes.rb
Overview
-
exponentiation = expression, “**”, expression ;
Instance Method Summary collapse
Methods inherited from Node
#access_property, #qualified_names_in_context, #raise_evaluation_error
Instance Method Details
#eval(context = {}) ⇒ Object
314 315 316 317 318 319 |
# File 'lib/feel/nodes.rb', line 314 def eval(context = {}) head_val = head.eval(context) tail_val = tail.eval(context) return nil if head_val.nil? || tail_val.nil? head_val ** tail_val end |