Sha256: 9649c569b3bd7af62fdaafab04461ecd0f9025fbce754204716e1aec24d6e22c
Contents?: true
Size: 619 Bytes
Versions: 1
Compression:
Stored size: 619 Bytes
Contents
module Celerity class TableFooter < Element include Enumerable # specs for this? TAGS = [ Identifier.new('tfoot') ] ATTRIBUTES = BASE_ATTRIBUTES | CELLHALIGN_ATTRIBUTES | CELLVALIGN_ATTRIBUTES DEFAULT_HOW = :id def locate super @rows = @object.getRows if @object end def [](index) assert_exists return TableRow.new(self, :object, @rows[index-1]) end def length assert_exists return @object.getRows.length end def each assert_exists @rows.each { |row| yield TableRow.new(self, :object, row) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
celerity-0.0.3 | lib/celerity/elements/table_footer.rb |