The simplest implementation might look like this:
class ArrayUtils def self.multiplos(num, step) step.step(num * step, step).to_a end end
but you may need to add some additional checks for input arguments.
The simplest implementation might look like this:
class ArrayUtils def self.multiplos(num, step) step.step(num * step, step).to_a end end
but you may need to add some additional checks for input arguments.