Using nil.to_a or whatever.to_a in Ruby Sep 29th, 2010 Ruby is a programming language for developer happiness and productivity for customers. Here is a quick happiness and productivity tip: