# frozen_string_literal: true

require_relative './multi_sender'

# Invoca ::Array extensions
# TODO: Once the hobo_support gem is no longer used by any of our code, use prepend instead of alias
class Array

  alias_method :multiply, :*

  def *(rhs=nil)
    if rhs
      multiply(rhs)
    else
      Invoca::Utils::MultiSender.new(self, :map)
    end
  end
end

# frozen_string_literal: true

require_relative './multi_sender'

# Invoca ::Array extensions
# TODO: Once the hobo_support gem is no longer used by any of our code, use prepend instead of alias
class Array

  alias_method :original_multiply_operator, :*

  def *(rhs=nil)
    if rhs
      original_multiply_operator(rhs)
    else
      Invoca::Utils::MultiSender.new(self, :map)
    end
  end
end

Use a unique aliased method name to avoid collisions with hobosupport aliasing
TECH-4409: Use a unique aliased method name to avoid collisions with hobosupport aliasing
