Sha256: 49ba3f7fae84dd6b5bc796be92642809a31c8f56fad07ec25966172a6afacb2d

Contents?: true

Size: 307 Bytes

Versions: 8

Compression:

Stored size: 307 Bytes

Contents

# frozen_string_literal: true

module BooleanCombinator
  def evaluate(evaluator, args)
    if args.is_a? Array
      return combine(evaluator, args)
    end
    nil
  end

  # @abstract method
  def combine(evaluator, args)
    raise NotImplementedError.new("You must implement combine method.")
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
absmartly-sdk-1.1.2 lib/json_expr/operators/boolean_combinator.rb
absmartly-sdk-1.1.1 lib/json_expr/operators/boolean_combinator.rb
absmartly-sdk-1.1.0 lib/json_expr/operators/boolean_combinator.rb
absmartly-sdk-1.0.8 lib/json_expr/operators/boolean_combinator.rb
absmartly-sdk-1.0.7 lib/json_expr/operators/boolean_combinator.rb
absmartly-sdk-1.0.6 lib/json_expr/operators/boolean_combinator.rb
absmartly-sdk-1.0.5 lib/json_expr/operators/boolean_combinator.rb
absmartly-sdk-0.1.2 lib/json_expr/operators/boolean_combinator.rb