Subject: [ruby-core:46091] Re: [ruby-trunk - Feature #4985] Add %S[] support for making a list of symbols
From: SASADA Koichi <ko1@ d . t
Date: Mon, 2 Jul 2012 06:45:38 +0900
References: 3784046005
In-reply-to: 46005
I guessed that %S(...) is S-expr syntax.
example:
%S((foo bar (baz boo)) #=> [:foo, :bar, [:baz, :boo]]
(I have no idea about use-case of this S-expr literal, except Lisp like DSL)
--
// SASADA Koichi at atdot dot net