class Stannum::Constraints::Types::NilType

A Nil type constraint asserts that the object is nil.

Constants

NEGATED_TYPE

The :type of the error generated for a matching object.

TYPE

The :type of the error generated for a non-matching object.

Public Class Methods

new(**options) click to toggle source

@param options [Hash<Symbol, Object>] Configuration options for the

constraint. Defaults to an empty Hash.
Calls superclass method Stannum::Constraints::Type::new
# File lib/stannum/constraints/types/nil_type.rb, line 16
def initialize(**options)
  super(::NilClass, **options)
end