Sha256: 525530b70fd7d9f513afd354be1d46fc69b3f3017046a457f14bb6fd8ea02b8f

Contents?: true

Size: 168 Bytes

Versions: 7

Compression:

Stored size: 168 Bytes

Contents

# frozen_string_literal: true

module Stairwell
  module Types
    class NullType < BaseType
      def valid?
        value.is_a?(NilClass)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
stairwell-0.6.5 lib/stairwell/types/null_type.rb
stairwell-0.6.4 lib/stairwell/types/null_type.rb
stairwell-0.6.3 lib/stairwell/types/null_type.rb
stairwell-0.6.2 lib/stairwell/types/null_type.rb
stairwell-0.6.1 lib/stairwell/types/null_type.rb
stairwell-0.6.0 lib/stairwell/types/null_type.rb
stairwell-0.5.0 lib/stairwell/types/null_type.rb