Ruby: Escape whitespace in the ruby array by %w

Space between words

# expect
['a', 'b c']
# by %w
%w[a b c] # => ["a", "b", "c"]
# %w with escape
%w[a b\ c]

Empty space

# expect
['a', ' ', 'c']
# by %w
%w[a ] # => ["a"]
# %w with escape
%w[a \  c] # => ["a", " ", "c"]

Reference:

space-in-the-ruby-array-by-w