------art_452_22971971.1201989819206
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I'm not sure about looking ahead to the next element using #each, but if you
can describe why you want to do it, there might be a different way than
using #each.

-Corey

On Feb 2, 2008 4:43 PM, Chris Hickman <hickmanchris / msn.com> wrote:

> I am using .each to pull apart a string at every space.  Is there a way
> to peek ahead to see what the next substring is without moving to the
> next substring in the block?
>
> I have a ruby book and I was searching for this through google but have
> had no luck so far.  Didn't know if this was an easy answer for anybody.
>
>
> Thanks in advance,
>
> Chris
> --
> Posted via http://www.ruby-forum.com/.
>
>


-- 
http://www.coreyhaines.com
The Internet's Premiere source of information about Corey Haines

------art_452_22971971.1201989819206--