Class: XlsFunction::Evaluators::StringEvaluator
- Inherits:
-
Object
- Object
- XlsFunction::Evaluators::StringEvaluator
- Includes:
- Evaluable
- Defined in:
- lib/xls_function/evaluators/string_evaluator.rb
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
- #eval ⇒ Object
-
#initialize(source, context) ⇒ StringEvaluator
constructor
A new instance of StringEvaluator.
Methods included from Evaluable
Constructor Details
#initialize(source, context) ⇒ StringEvaluator
Returns a new instance of StringEvaluator.
8 9 10 11 |
# File 'lib/xls_function/evaluators/string_evaluator.rb', line 8 def initialize(source, context) @source = source @context = context end |
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source.
6 7 8 |
# File 'lib/xls_function/evaluators/string_evaluator.rb', line 6 def source @source end |
Instance Method Details
#eval ⇒ Object
13 14 15 |
# File 'lib/xls_function/evaluators/string_evaluator.rb', line 13 def eval source.to_s end |