%w{one two} is a shortcut to ["one", "two"] : the %w{...} notation accepts space-separated elements as strings for an array.
In fact, this is the whole reason %w{...} : writing arrays without quotes or commas to separate elements, which allows you to use quotes and commas without escaping them.
source share