Sha256: 5dad2edf373c4c8eec3956ad9d4cd0dd87b611b1744d38736e10d01489f73e23

Contents?: true

Size: 317 Bytes

Versions: 1

Compression:

Stored size: 317 Bytes

Contents

# frozen_string_literal: true

# @api public
# @since 0.1.0
SmartCore::Types::Value.define_type(:Nil) do |type|
  type.define_checker do |value|
    # rubocop:disable Style/NilComparison
    value == nil # NOTE: #nil? is not used cuz BasicObject hasn't #nil? method
    # rubocop:enable Style/NilComparison
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
smart_types-0.1.0 lib/smart_core/types/value/nil.rb