Literally the coolest way to build an arrayOne of Ruby’s literal syntax shorthands,
%iessentially loops over each word, converts to a symbol and adds it to an array. For example:
%i(dog cat mouse)
# => [:dog, :cat, :mouse]
Caveat: This syntax was added in Ruby 2.0, so don’t go trying it in any previous version.