module Druid module Elements class TableRow < Element def [](idx) element[idx] end # # Returns the number of rows in the table. # def columns element.cells.size end def each for index in 1..self.columns do yield self[index-1] end end end end end