From: William James Date: 2007-09-23T19:35:15+09:00 Subject: Re: %w| a b c| %w_a b c_ %w all work David A. Black wrote: > Hi -- > > On Sat, 22 Sep 2007, SpringFlowers AutumnMoon wrote: > > > %w|a b c| > > > > %w_a b c_ > > > > %w > > > > all work > > is there an official doc or book that says so? > > > > seems like the first character that after "%w" can be used as a > > delimiter. > > Pretty much, though some characters won't work. My favorite % trick > is: > > ruby -e 'p %q abc ' > "abc" > > :-) I enjoy doing this: irb(main):002:0> %w) foo bar) => ["foo", "bar"]