What does %w(array) mean?

%w(foo bar)Ā is a shortcut forĀ [“foo”, “bar”]. Meaning it’s a notation to write an array of strings separated by spaces instead of commas and without quotes around them. You can find a list of ways of writing literals inĀ zenspider’s quickref.