From: "mame (Yusuke Endoh)" <mame@...>
Date: 2012-07-02T02:17:12+09:00
Subject: [ruby-core:46068] [ruby-trunk - Feature #4985] Add %S[] support for making a list of symbols


Issue #4985 has been updated by mame (Yusuke Endoh).


Received.  Thank you!

The second page is mysterious... A cat or something walked a straight line of your keyboard? :-)

-- 
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Feature #4985: Add %S[] support for making a list of symbols
https://bugs.ruby-lang.org/issues/4985#change-27675

Author: tenderlovemaking (Aaron Patterson)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: 
Target version: 


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. :-)


-- 
http://bugs.ruby-lang.org/