ruby %w meaning code example Example: ruby %w meaning %w(foo bar) is a shortcut for ["foo", "bar"]. Creates an array of the strings.