Project

General

Profile

Feature #4985

Add %S[] support for making a list of symbols

Added by tenderlovemaking (Aaron Patterson) about 9 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:37840]

Description

I would like to add %S, which would create a list of symbols.

For example:

%S[foo bar] # => [:foo, :bar]

I've attached a patch which implements this along with ripper events and tests. Thanks to Josh Susser for thinking of this. :-)


Files

qsymbols.patch (5.82 KB) qsymbols.patch symbol patch tenderlovemaking (Aaron Patterson), 07/07/2011 01:00 PM
qsymbols.patch (5.76 KB) qsymbols.patch correctly indented patch tenderlovemaking (Aaron Patterson), 07/07/2011 01:02 PM
percent_i.patch (7.2 KB) percent_i.patch percent i and percent I tenderlovemaking (Aaron Patterson), 08/04/2011 09:26 AM
feature4985.pdf (261 KB) feature4985.pdf tenderlovemaking (Aaron Patterson), 07/01/2012 04:27 AM
noname (500 Bytes) noname Anonymous, 07/02/2012 11:29 PM
noname (500 Bytes) noname Anonymous, 07/02/2012 11:29 PM
4985.patch (7.69 KB) 4985.patch updated patch to fix conflicts and tests tenderlovemaking (Aaron Patterson), 07/24/2012 08:44 AM

Also available in: Atom PDF