Which of the following is best described as a block?
1) my_array = [1, 2, 3]
my_array.each {|i| puts i*i}
2) def double(n)
return n * 2
end
3) def welcome
puts "Welcome to Ruby!"
end
4) city = ["London", "Paris", "Belfast", "Rome"]