Now parameters can be defined with an array of types. At runtime, if the passed argument has a type present in the array of type, it will be considered a valid parameter.
This allows cases such as:
class CalculatorService < BoringService
parameter :num_1, [Float, Integer]
parameter :num_2, [Float, Integer]
def call
puts "Sum of #{num_1} and #{num_2} is equal to #{num1 + num_2}"
end
end
Now parameters can be defined with an array of types. At runtime, if the passed argument has a type present in the array of type, it will be considered a valid parameter.
This allows cases such as:
Closes #2