Ah thanks, the symbol argument i didn't know thanks !

On Nov 24, 3:11 am, Jeremy Evans <[email protected]> wrote:
> On Nov 23, 2:42 pm, _dewie_ <[email protected]> wrote:
>
> > Great ! that does the trick.
> > Just having a litte trouble understanding the notation :| in inject,
> > what does that mean.
> > I tested '|' also works but i don't know why :)
>
> Enumerable#inject with a symbol argument and no block calls the method
> represented by the symbol on the first element of the enumerable, with
> the second element as the argument.  It takes the result of that and
> calls the method represented by the symbol on it, with the third
> element as the argument.  It repeats this process until there are no
> elements left in the enumerable. 
> Seehttp://www.ruby-doc.org/core-1.8.7/classes/Enumerable.html#M001147
>
> Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to