Class: Typeguard::Validation::Nil

Inherits:
Base
  • Object
show all
Defined in:
lib/typeguard/types.rb

Instance Method Summary collapse

Methods inherited from Base

from

Instance Method Details

#valid?(value) ⇒ Boolean

Returns:

  • (Boolean)


146
147
148
# File 'lib/typeguard/types.rb', line 146

def valid?(value)
  value.nil?
end