# Review needed - Table Class, based on 2d (nested) Arrays

**URL:** <https://www.ruby-forum.com/t/review-needed-table-class-based-on-2d-nested-arrays/188269>\
**Category:** Ruby\
**Created:** [May 8, 2010, 10:45pm UTC](https://www.ruby-forum.com/t/review-needed-table-class-based-on-2d-nested-arrays/188269 "2010-05-08T22:45:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dreamcat4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@dreamcat4](https://www.ruby-forum.com/u/dreamcat4)\
**Post date:** [May 8, 2010, 10:45pm UTC](https://www.ruby-forum.com/t/review-needed-table-class-based-on-2d-nested-arrays/188269/1 "2010-05-08T22:45:59Z")

</div>

Hi,

> <https://gist.github.com/dreamcat4/394757>

Have been working on this new class, after seeing no other satisfactory  
class from other ruby libraries. The basic premise of this particular  
class is to provide a solid foundation for some other HtmlTables class.

So with those requirement I had to go the route of a Table  
representation, with a (Columns, Rows) addressing scheme. Array indexes  
are all specified as ranges. Eg (3…5,2…4) represents a 3x3 square  
starting at column 3, row 2.

My main concern is that there is some big hole in the code which I have  
already wrote. Clearly also the initialization method needs some work. I  
may just re-write init to only accept a Hash of initialization options.

If you have some comment, please point out with Line #

dreamcat4  
removed\_email\_address@domain.invalid
