Sha256: cdf6a73799751d9d1494a948227bad525414912ecd1cba8d3fcb5849f24d13e1

Contents?: true

Size: 234 Bytes

Versions: 7

Compression:

Stored size: 234 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|
    value == nil # NOTE: #nil? is not used cuz BasicObject hasn't #nil? method
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
smart_types-0.8.0 lib/smart_core/types/value/nil.rb
smart_types-0.7.1 lib/smart_core/types/value/nil.rb
smart_types-0.7.0 lib/smart_core/types/value/nil.rb
smart_types-0.6.0 lib/smart_core/types/value/nil.rb
smart_types-0.4.0 lib/smart_core/types/value/nil.rb
smart_types-0.3.0 lib/smart_core/types/value/nil.rb
smart_types-0.2.0 lib/smart_core/types/value/nil.rb