class Insertion

def initialize(list, value)

Parameters:
  • value (Object) -- the value to insert
  • list (Array) -- the list to perform the insertion on
def initialize(list, value)
  @list = list
  @values = (Array === value ? value : [value])
end