You've switched between %w and [] for array creation. I know they are the same thing, but users (especially non-Rubyists) don't. This could be a point of confusion.