Sha256: 16a4d12e9627aef911325ad756da2f5cba88215084ba5cf6508eb36ace0c5fdd
Contents?: true
Size: 677 Bytes
Versions: 1
Compression:
Stored size: 677 Bytes
Contents
module Celerity class TableCell < Element include ClickableElement 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jarib-celerity-0.0.5.5 | lib/celerity/elements/table_cell.rb |