class Avromatic::Model::Types::NullType
Constants
- VALUE_CLASSES
Public Instance Methods
Source
# File lib/avromatic/model/types/null_type.rb, line 19 def coerce(input) if input.nil? nil else raise ArgumentError.new("Could not coerce '#{input.inspect}' to #{name}") end end
Source
# File lib/avromatic/model/types/null_type.rb, line 27 def coercible?(input) input.nil? end
Also aliased as: coerced?
Source
# File lib/avromatic/model/types/null_type.rb, line 37 def referenced_model_classes EMPTY_ARRAY end
Source
# File lib/avromatic/model/types/null_type.rb, line 33 def serialize(_value, _strict) nil end
Source
# File lib/avromatic/model/types/null_type.rb, line 11 def value_classes VALUE_CLASSES end