Module: XlsFunction::TransformRules::BooleanTransform
- Included in:
- XlsFunction::Transform
- Defined in:
- lib/xls_function/transform_rules/boolean_transform.rb
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/xls_function/transform_rules/boolean_transform.rb', line 4 def self.included(klass) klass.class_eval do rule(true_expr: simple(:value)) { |context| ::XlsFunction::Evaluators::TrueEvaluator.new(context[:value], context) } rule(false_expr: simple(:value)) { |context| ::XlsFunction::Evaluators::FalseEvaluator.new(context[:value], context) } end end |