Using %W
I can use %W[a #{} b #{} c]
, also I can concatenate arrays, but is it possible to create array ['a', '', 'b', '', 'c']
using just %w[]
?
Tell me more
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
|
You can use
,but I think it's not very clean. | ||||
|
A couple of options
(I know this isn't using the
| |||
|