Module: XlsFunction::TransformRules::StringTransform
- Included in:
- XlsFunction::Transform
- Defined in:
- lib/xls_function/transform_rules/string_transform.rb
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/xls_function/transform_rules/string_transform.rb', line 4 def self.included(klass) klass.class_eval do # empty string pattern rule(string: []) do ::XlsFunction::Evaluators::StringEvaluator.new('', {}) end rule(string: simple(:string)) do |context| ::XlsFunction::Evaluators::StringEvaluator.new(context[:string], context) end end end |