How can i add space character in the ruby array if i want to use %w(a b c) syntax?
Escape it:
%w(a b\ c) # => ["a", "b c"]
Try this:
>> a = %w(a\ b c) => ["a ", "b", "c"]