Sha256: b08af7df24a10ff8a5f2d96203210e4beabd5b34a042d163f671f331304abc97

Contents?: true

Size: 238 Bytes

Versions: 8

Compression:

Stored size: 238 Bytes

Contents

# frozen_string_literal: true

require_relative "binary_operator"

class EqualsOperator
  include BinaryOperator

  def binary(evaluator, lhs, rhs)
    result = evaluator.compare(lhs, rhs)
    !result.nil? ? (result == 0) : nil
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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