Check out example codes for "ruby %w meaning". It will help you in understanding the concepts better.

Code Example 1

%w(foo bar) is a shortcut for ["foo", "bar"]. Creates an array of the strings.

Learn ReactJs, React Native from akashmittal.com