Method: Avromatic::Model::Types::NullType#coerce

Defined in:
lib/avromatic/model/types/null_type.rb

#coerce(input) ⇒ Object



19
20
21
22
23
24
25
# 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