Sha256: c07a2c84aaabbfefdbaa066456cb7904cfd64b7b61b52c90e18510d26afe8633

Contents?: true

Size: 250 Bytes

Versions: 8

Compression:

Stored size: 250 Bytes

Contents

# frozen_string_literal: true

require_relative "binary_operator"

class GreaterThanOrEqualOperator
  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/greater_than_or_equal_operator.rb
absmartly-sdk-1.1.1 lib/json_expr/operators/greater_than_or_equal_operator.rb
absmartly-sdk-1.1.0 lib/json_expr/operators/greater_than_or_equal_operator.rb
absmartly-sdk-1.0.8 lib/json_expr/operators/greater_than_or_equal_operator.rb
absmartly-sdk-1.0.7 lib/json_expr/operators/greater_than_or_equal_operator.rb
absmartly-sdk-1.0.6 lib/json_expr/operators/greater_than_or_equal_operator.rb
absmartly-sdk-1.0.5 lib/json_expr/operators/greater_than_or_equal_operator.rb
absmartly-sdk-0.1.2 lib/json_expr/operators/greater_than_or_equal_operator.rb