Sha256: 2eff61edca9e254bab55b5edd22f999b292f4e212e6907e9c8882cfadc76e060
Contents?: true
Size: 488 Bytes
Versions: 4
Compression:
Stored size: 488 Bytes
Contents
module Druid module Elements class TableRow < Element def [](idx) table_cell = element[idx] Druid::Elements::TableCell.new(table_cell) 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 Druid::Elements.tag_to_class[:tr] = Druid::Elements::TableRow end end
Version data entries
4 entries across 4 versions & 1 rubygems