Sha256: 587f42c77ddf924303a956f49810d1540d100555e0dac631485240c8109081cb

Contents?: true

Size: 178 Bytes

Versions: 4

Compression:

Stored size: 178 Bytes

Contents

module Restspec::Schema::Types
  class NullType < BasicType
    def example_for(attribute)
      nil
    end

    def valid?(attribute, value)
      value.nil?
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
restspec-0.0.4 lib/restspec/schema/types/null_type.rb
restspec-0.0.3 lib/restspec/schema/types/null_type.rb
restspec-0.0.2 lib/restspec/schema/types/null_type.rb
restspec-0.0.1 lib/restspec/schema/types/null_type.rb