From: jake kaiden Date: 2011-07-28T03:44:01+09:00 Subject: Re: How do we read this line of code? SW Engineer wrote in post #1013421: > If we have the following line of Ruby code: > > @x.each do |x| > > - What does |x| represent here? |x| represents each item found within @x... > - How do we read the line (i.e; in English)? if @x is an array, you could read this as "for each entry (x) in the array (@x,) *do* something nifty..." -j -- Posted via http://www.ruby-forum.com/.