cambio de matriz de rubí

# Syntax: Array.shift()
# Parameter: Array
# REMOVES the first element of self and RETURNS it or nil if the array is empty.

a = [18, 22, 33, nil, 5, 6]
b = [1, 4, 1, 1, 88, 9]
c = [18, 22, 50, 6]
  
# shift method example
puts "shift() method form : #{a.shift()}\n"  
puts "shift() method form : #{b.shift(2)}\n"
puts "shift() method form : #{c.shift(3)}\n"
wolf-like_hunter