On Sat, Jul 5, 2014 at 12:10 PM, Daniel da Silva Ferreira <
danieldasilvaferreira / gmail.com> wrote:

> Thanks Jesus.
>
> No way I would be able to get there.
> I tried to search for %W.
>
> In the end everything is handled by the parser.
>
> Is there any place where you can find documentation about this internal
> things?
>

For this depth of information, the code will always be the best place to
look.



>
> Regards,
>
> Daniel
>
> On 05 Jul 2014, at 19:15, John W Higgins <wishdev / gmail.com> wrote:
>
> #unexpected
>> str = "hello world"
>> %W(#{str}) # => ["hello world"]
>>
>>
> I believe the easiest way to understand this is that the %W does not do
> the string interpolation until AFTER it has broken down the elements of the
> input using space as the delimiter so the %W call never sees your space
> inside the string.
>
> John
>
>
>