P
Phlip
Ruboids:
I have only started googling I will report back here what I find or write.
Does anyone have a code snippet which reads a 2D array and outputs a cute
formatted text table, like this?
| concept | frobs | zones |
| Unruly Pygmy | 6 | 10001 |
| Renonymize | 4 | 9999 |
| Opramatic | 4 | 10001 |
| El Pollo Psycho | 4 | 10002 |
| Mouse Guard | 4 | 10003 |
| layuhponit | 4 | 10004 |
Please notice I'm not asking how to format text with sprintf('%*i') etc. I'm
asking if anyone has solved this problem in some cute generic way that makes for
a good Ruby exercise.
I have only started googling I will report back here what I find or write.
Does anyone have a code snippet which reads a 2D array and outputs a cute
formatted text table, like this?
| concept | frobs | zones |
| Unruly Pygmy | 6 | 10001 |
| Renonymize | 4 | 9999 |
| Opramatic | 4 | 10001 |
| El Pollo Psycho | 4 | 10002 |
| Mouse Guard | 4 | 10003 |
| layuhponit | 4 | 10004 |
Please notice I'm not asking how to format text with sprintf('%*i') etc. I'm
asking if anyone has solved this problem in some cute generic way that makes for
a good Ruby exercise.