# Newbie: pipe

**URL:** <https://www.ruby-forum.com/t/newbie-pipe/76509>\
**Category:** Ruby\
**Created:** [November 19, 2006, 10:10pm UTC](https://www.ruby-forum.com/t/newbie-pipe/76509 "2006-11-19T22:10:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![softf5ajivanet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9f8e36/32.png) [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Post date:** [November 19, 2006, 10:10pm UTC](https://www.ruby-forum.com/t/newbie-pipe/76509/1 "2006-11-19T22:10:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![softf5ajivanet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9f8e36/32.png) [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Post date:** [November 19, 2006, 10:33pm UTC](https://www.ruby-forum.com/t/newbie-pipe/76509/2 "2006-11-19T22:33:35Z")

</div>

check this link out, it gives some good examples:  
[http://www.xs4all.nl/~jjacobs/rubyfaq-5.html](http://www.xs4all.nl/~jjacobs/rubyfaq-5.html)

LuCa

---

<div class="post-metadata">

**Author:** ![softf5ajivanet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9f8e36/32.png) [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Post date:** [November 20, 2006, 2:45pm UTC](https://www.ruby-forum.com/t/newbie-pipe/76509/3 "2006-11-20T14:45:42Z")

</div>

John G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

> 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.
