Check if all array elements are equals

arr = [0, 0, 0, 0, 0, 0, 0]
puts true if arr.uniq.length == 1