Sha256: 0a2462d0b5a7074257bbb436dae16935e6ec924f5ed5a82b697dda8d641818ff
Contents?: true
Size: 648 Bytes
Versions: 5
Compression:
Stored size: 648 Bytes
Contents
module Celerity class TableCell < Element include Celerity::Exception include Container TAGS = [ Identifier.new('td') ] ATTRIBUTES = BASE_ATTRIBUTES | CELLHALIGN_ATTRIBUTES | CELLVALIGN_ATTRIBUTES | [:abbr, :axis, :headers, :scope, :rowspan, :colspan] DEFAULT_HOW = :id alias_method :to_s, :text # why? def colspan assert_exists attribute_value = @object.getAttributeValue('colspan').to_i attribute_value > 0 ? attribute_value : 1 end end # needs code review regarding attributes/correctness of this class Th < TableCell TAGS = [ Identifier.new('th')] end end
Version data entries
5 entries across 5 versions & 2 rubygems