Class: Primalize::Many::Optional

Inherits:
Object
  • Object
show all
Defined in:
lib/primalize/many.rb

Instance Method Summary collapse

Instance Method Details

#callObject



57
58
59
60
61
# File 'lib/primalize/many.rb', line 57

def call
  return nil if @object.nil?

  @serializer.call
end