Last Updated: February 25, 2016
·
357
· adone

Ruby % syntax

Did you know that % syntax in ruby can use with any limiters?

%w(first second third)

%w[first second third]

It are standard examples, but code below works too

%i`first second third`

%q-a few words-

%w.a few words.