Remove array elements in Ruby
In this article, we will learn how to remove elements from an array in Ruby. Method #1: Using Index C/C++ Code # Ruby program to remove elements # in array # creating string using [] str = ["GFG", "G4G", "Sudo", "Geeks"] str.delete_at(0) print str Output: ["G4