Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/invoca/utils/array.rb
Overview
Invoca ::Array extensions TODO: Once the hobo_support gem is no longer used by any of our code, use prepend instead of alias
Instance Method Summary collapse
- #*(rhs = nil) ⇒ Object
-
#original_multiply_operator ⇒ Object
rubocop:disable Style/Alias.
Instance Method Details
#*(rhs = nil) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/invoca/utils/array.rb', line 11 def *(rhs = nil) if rhs original_multiply_operator(rhs) else Invoca::Utils::MultiSender.new(self, :map) end end |
#original_multiply_operator ⇒ Object
rubocop:disable Style/Alias
9 |
# File 'lib/invoca/utils/array.rb', line 9 alias_method :original_multiply_operator, :* |