Sha256: d2264bdbd24cf4bd20b23df5f4f07f90b52ebf85bd333b960db6624a92122d8a

Contents?: true

Size: 288 Bytes

Versions: 3

Compression:

Stored size: 288 Bytes

Contents

# frozen_string_literal: true

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 has no #nil? method
    # rubocop:enable Style/NilComparison
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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