Class: Kafo::DataTypes::Undef

Inherits:
Kafo::DataType show all
Defined in:
lib/kafo/data_types/undef.rb

Instance Method Summary collapse

Methods inherited from Kafo::DataType

#condition_value, #dump_default, #multivalued?, new_from_string, parse_hash, register_type, split_arguments, #to_s, #typecast, types, unregister_type

Instance Method Details

#valid?(input, errors = []) ⇒ Boolean

Returns:



4
5
6
7
# File 'lib/kafo/data_types/undef.rb', line 4

def valid?(input, errors = [])
  errors << "#{input} must be undef" unless input.nil?
  return errors.empty?
end