Sha256: 37937ad507e1d579617ab2ea78cf86c915e593d13bcd9226dcd388797f8aab2b

Contents?: true

Size: 187 Bytes

Versions: 8

Compression:

Stored size: 187 Bytes

Contents

# frozen_string_literal: true

require_relative "./unary_operator"

class NotOperator
  include UnaryOperator

  def unary(evaluator, args)
    !evaluator.boolean_convert(args)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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