Method: XlsFunction::Evaluators::FunctionEvaluator#evaluate

Defined in:
lib/xls_function/evaluators/function_evaluator.rb

#evaluate(runtime_context = nil) ⇒ Object



21
22
23
24
25
26
27
28
29
30
31
# File 'lib/xls_function/evaluators/function_evaluator.rb', line 21

def evaluate(runtime_context = nil)
  rescue_with StandardError do
    merge_context(runtime_context) do
      before_eval
      # Don't evaluate when returns error
      return error_value if error?

      eval_or_map_eval
    end
  end
end