Module: XlsFunction::Evaluators::Evaluable

Included in:
FalseEvaluator, FunctionEvaluator, NumberEvaluator, StringEvaluator, TrueEvaluator, VariantEvaluator
Defined in:
lib/xls_function/evaluators/evaluable.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



6
7
8
9
10
# File 'lib/xls_function/evaluators/evaluable.rb', line 6

def self.included(klass)
  klass.class_eval do
    attr_reader :context
  end
end

Instance Method Details

#evaluate(runtime_context = nil) ⇒ Object



12
13
14
15
16
17
# File 'lib/xls_function/evaluators/evaluable.rb', line 12

def evaluate(runtime_context = nil)
  merge_context(runtime_context) do
    before_eval
    eval
  end
end