Sorry for double posting this on the Ruby section, I realized this is
kind of a rails question since it might relate to ActiveSupport.
Is there any prettier or cleaner way to write
x = [x] unless x.is_a?(Array)
I've looked into Array() and hash.to_a, but these will not give the
intended result as above.
Thanks in advance.