Sha256: 65ce1a13a39acd6b0472bdbfc2891e6ed7d131eccf278d8bb045c27f7c86f684
Contents?: true
Size: 559 Bytes
Versions: 1
Compression:
Stored size: 559 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 def colspan assert_exists attribute_value = @object.getAttributeValue('colspan').to_i attribute_value > 0 ? attribute_value : 1 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
celerity-0.0.4 | lib/celerity/elements/table_cell.rb |