# Creating Output Tables

**URL:** <https://www.ruby-forum.com/t/creating-output-tables/109499>\
**Category:** Ruby\
**Created:** [July 16, 2007, 1:12am UTC](https://www.ruby-forum.com/t/creating-output-tables/109499 "2007-07-16T01:12:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ari\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Post date:** [July 16, 2007, 1:12am UTC](https://www.ruby-forum.com/t/creating-output-tables/109499/1 "2007-07-16T01:12:31Z")

</div>

HAI,  
Is there a suggested library for creating nice tabley outputs? I was  
looking for output much in the way that benchmark has its output.

asdf 12321 asdf  
asdf 12312 qemp[g  
qlfckjsd 987234 asdf

etcetera.

KTHXBAI,  
Ari  
-------------------------------------------|  
Nietzsche is my copilot

---

<div class="post-metadata">

**Author:** ![Ari\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Post date:** [July 16, 2007, 1:16am UTC](https://www.ruby-forum.com/t/creating-output-tables/109499/2 "2007-07-16T01:16:32Z")

</div>

On 7/16/07, Ari B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> HAI,  
> Is there a suggested library for creating nice tabley outputs? I was  
> looking for output much in the way that benchmark has its output.
> 
> asdf 12321 asdf  
> asdf 12312 qemp[g  
> qlfckjsd 987234 asdf
> 
> etcetera.

May be ruport, but i think you already know about it.

---

<div class="post-metadata">

**Author:** ![Ari\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Post date:** [July 16, 2007, 2:12am UTC](https://www.ruby-forum.com/t/creating-output-tables/109499/3 "2007-07-16T02:12:35Z")

</div>

On 7/16/07, Ari B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> HAI,  
> Is there a suggested library for creating nice tabley outputs? I was  
> looking for output much in the way that benchmark has its output.
> 
> asdf 12321 asdf  
> asdf 12312 qemp[g  
> qlfckjsd 987234 asdf
> 
> etcetera.

require ‘ruport’

table = [  
%w[asdf 12344 asdf],  
%w[asdf 12342 qwer(d],  
%w[zxcvdfg 23521 vbcbd]  
].to\_table

puts table.to\_text # =\>

±-------------------------+  
| asdf | 12344 | asdf |  
| asdf | 12342 | qwer(d |  
| zxcvdfg | 23521 | vbcbd |  
±-------------------------+

---

<div class="post-metadata">

**Author:** ![Ari\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Post date:** [July 16, 2007, 2:16am UTC](https://www.ruby-forum.com/t/creating-output-tables/109499/4 "2007-07-16T02:16:36Z")

</div>

Thanks!

On Jul 15, 2007, at 8:11 PM, Michael F. wrote:

> > etcetera.
> 
> ±-------------------------+  
> | asdf | 12344 | asdf |  
> | asdf | 12342 | qwer(d |  
> | zxcvdfg | 23521 | vbcbd |  
> ±-------------------------+

--------------------------------------------|  
If you’re not living on the edge,  
then you’re just wasting space.
