I have the following which works well:
def steps
%w[hello billing confirmation]
end
steps.first
But I want to do this:
d
You can also use the backslash to escape spaces:
%w@foo\ bar bang@
is the same as:
[ 'foo bar', 'bang' ]
In your example I wouldn't use the %w
notation, because it's not that clear.
PS. I do like mixing the delimiter characters, just to annoy team members :) Like this:
%w?foo bar?
%w|foo bar|
%w\foo bar\
%w{foo bar}