%myOwn

Check Ryan Davis's Ruby QuickRef:

Ryan: will you update this QuickRef for Ruby 2.3? For example: <<~ for Here
Docs.

···

2016-01-07 22:49 GMT-08:00 A Berger <aberger7890@gmail.com>:

Hi Ryan!
I already have bought RubyRef by Fitzgerald. -- No %(), no %W, no %//
Seems this cannot be recommended (bought both, version 1.8 (2007) is
better than 2.2 (2015), altogether not uptodate.
goggle didnt find anything with ruby + %()..
( - or I used the wrong search text)
Because I owned the "best rated" refs already, I didnt search for Refs.
I had a long way suffering using that Reference from Fitzgerald. - cant
understand why 1st version looks more complete then the 2nd one.
So I say thanks for this html-ref ( the layout is not the best, but the
contents count; and its free)
ABerger
Am 08.01.2016 01:06 schrieb "Ryan Davis" <ryand-ruby@zenspider.com>:

> On Jan 7, 2016, at 00:37, Robert Klemme <shortcutter@googlemail.com> >> wrote:
>
> Note that the phrasing is misleading: the String instances created do
not contain quotes. You only see the quotes because of the output method
(#inspect or p() most likely). And you cannot use string interpolation
within this construct which you can in double quoted strings.

You definitely can use interpolation in some of the forms. From the
quickref:

%q(no interpolation)
%Q(interpolation and backslashes)
%(interpolation and backslashes)
%x(echo command interpretation with interpolation and backslashes)
%w(foo bar baz #{1+1}) == ["foo", "bar", "baz", "\#{1+1}"]
%W(foo bar baz #{1+1}) == ["foo", "bar", "baz", "2"]

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;