From: Kyle Date: 2009-11-16T02:20:18+09:00 Subject: Re: what's || --Boundary-00=_PhDALZ53P0ucMUV Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Oh lawd i'm a total jackass for not realizing there was more to the e-mail. Disregard the previous nonsense. | | is used to indicate a block variable. Ya gotta read the pickaxe book or another ruby guide for more on what that means: http://www.ruby-doc.org/docs/ProgrammingRuby/ On Sunday November 15 2009 7:59:31 am duxieweb wrote: > sorry just was learning ruby so have some low level questions, :) > > in this statement: > > 1.upto(10) do |c| print c," " end > > what's the usage of "| ... |" in ruby? can't easily understand. > > Thanks. --Boundary-00=_PhDALZ53P0ucMUV--