I have this file.rb and when I run it from terminal, I want to delete a certain input value. However, the array remains the same. Any help, please?
def delete
print "Introduce the parameter for the delete action"
delete_value = gets.chomp
p @array.select { |e| e!= "#{delete_value}"}
#@second_array = @array.reject! {|x| x == "#{delete_value}" }
#puts @second_array
end