diff --git a/lib/sorted_containers/sorted_array.rb b/lib/sorted_containers/sorted_array.rb index 5e32882..35f933e 100644 --- a/lib/sorted_containers/sorted_array.rb +++ b/lib/sorted_containers/sorted_array.rb @@ -94,16 +94,10 @@ def add(value) end @size += 1 end + alias << add # rubocop:enable Metrics/MethodLength - # Alias for add - # - # @param value [Object] The value to add. - def <<(value) - add(value) - end - # Returns a string representation of the sorted array. # # @return [String] A string representation of the sorted array.