def parse_table(table_rows)
      classes = Tableau::ClassArray.new
      @day = 0

      # delete the time header row
      table_rows.delete(table_rows.first)

      table_rows.each do |row|
        @time = Time.new(2013, 1, 1, 9, 0, 0)

        # drop the 'Day' cell from the row
        row_items = row.xpath('td')
        row_items.delete(row_items.first)

        row_items.each do |cell|
          if cell.attribute('colspan')
            intervals = cell.attribute('colspan').value
            classes << create_class(cell)
          else intervals = 1
          end

          inc_time(intervals)
        end

        @day += 1
      end

      classes
    end
def parse_table(table_rows)
      classes = Tableau::ClassArray.new
      @day = 0

      # delete the time header row
      table_rows.delete(table_rows.first)

      table_rows.each do |row|
        @time = Time.new(2013, 1, 1, 9, 0, 0)

        # drop the 'Day' cell from the row
        row_items = row.xpath('td')
        row_items.delete(row_items.first)

        row_items.each do |cell|
          if cell.attribute('colspan')
            intervals = cell.attribute('colspan').value
            classes << create_class(cell)
          else intervals = 1
          end

          inc_time(intervals)
        end

        @day += 1
      end

      classes
    end
Parse the module table for any classes