Could someone provide a better explanation to |element|?


#1

I've been going through Ruby and although I read through what exactly | | is, and the variable you put inside it, i'm still not 100% sure what it is and the limits to how it can be used. Can I put any variable in it?

I'm really hoping someone could provide a better explanation, thanks.


#2

@ajaxwhiz38844,
Could you provide a case in which it is used......