Sha256: ef38ac26f3ebe9e7d5b219a25d9b4e134b537df6c30aeab71c88f0f6ebaad09f

Contents?: true

Size: 162 Bytes

Versions: 8

Compression:

Stored size: 162 Bytes

Contents

# frozen_string_literal: true

require_relative "./unary_operator"

class NilOperator
  include UnaryOperator

  def unary(evaluator, arg)
    arg.nil?
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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