newbie: pipe

J

John Giles

Hi,

Im pretty new to programming in general and ruby is only the second
language that ive taken on. ive been reading around looking at code
examples etc.. and something that keeps coming up is pipe ie:
|something_in_here|. Could someone give an example of how this works and
what it exactly does because ive never seen it before and google isnt
helping.

Thanks,

John
 
D

David Kastrup

John Giles said:
Im pretty new to programming in general and ruby is only the second
language that ive taken on. ive been reading around looking at code
examples etc.. and something that keeps coming up is pipe ie:
|something_in_here|. Could someone give an example of how this works and
what it exactly does because ive never seen it before and google
isnt helping.

It is declaring an argument to a block. If you have never seen it
before, you should shred your introduction to Ruby. But it sounds
like you already did, and that might be your problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,219
Messages
2,571,117
Members
47,729
Latest member
taulaju99

Latest Threads

Top