From: Fily Salas Date: 2011-11-09T00:22:06+09:00 Subject: Re: Understanding the use of double pipes in Ruby First of all thank a lot for your help! Sorry about the confusion, I was talking more about pipes used in a block something like "|hobby|" in the code below. >hobbies =['Cars','Computers'] >hobbies.each do |hobby| >>>puts "I love working with #{hobby}" >end Is this the only time where "||" will not act as a boolean symbol? If this is a local variable why not use paranthesis as follow... >hobbies =['Cars','Computers'] >hobbies.each do (hobby) >>>puts "I love working with #{hobby}" >end Again my main confusion is because I have never seen double pipes used other than as Booleans, why are they used to enclose a local variable? Sorry if I'm still confusing or not explaining it correclty. -- Posted via http://www.ruby-forum.com/.