class ReeMapper::BuildMapperStrategy
def call(method:, output:, always_optional: false)
def call(method:, output:, always_optional: false) raise ArgumentError, 'invalid output' unless OUTPUT_MAP.key?(output) ReeMapper::MapperStrategy.new( method: method, output: OUTPUT_MAP.fetch(output).new, always_optional: always_optional ) end