Assign block value to a variable in array each method
data = ['1', '2', '3'] s = '' data.each { |x| s << x << ' and a '}