Sha256: cf03f48eee5d1eb4cd09d58402a9ac124d82b5d748d51b4af25e02e7443ee80d
Contents?: true
Size: 605 Bytes
Versions: 1
Compression:
Stored size: 605 Bytes
Contents
module Celerity class TableHeader < Element include Enumerable # specs for this? TAGS = [ Identifier.new('thead') ] ATTRIBUTES = BASE_ATTRIBUTES | CELLHALIGN_ATTRIBUTES | CELLVALIGN_ATTRIBUTES DEFAULT_HOW = :id def locate super @rows = @object.getRows if @object end def [](index) assert_exists TableRow.new(self, :object, @rows[index-1]) end def length assert_exists @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.4 | lib/celerity/elements/table_header.rb |