Class: XlsFunction::Evaluators::TrueEvaluator

Inherits:
Object
  • Object
show all
Includes:
Evaluable
Defined in:
lib/xls_function/evaluators/true_evaluator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Evaluable

#evaluate, included

Constructor Details

#initialize(source, context) ⇒ TrueEvaluator

Returns a new instance of TrueEvaluator.



9
10
11
12
# File 'lib/xls_function/evaluators/true_evaluator.rb', line 9

def initialize(source, context)
  @source = source
  @context = context
end

Instance Attribute Details

#sourceObject (readonly)

unused, but hold for future logging…



7
8
9
# File 'lib/xls_function/evaluators/true_evaluator.rb', line 7

def source
  @source
end

Instance Method Details

#evalObject



14
15
16
# File 'lib/xls_function/evaluators/true_evaluator.rb', line 14

def eval
  true
end