Class: WebUnit::TableCell
Direct Known Subclasses
Instance Attribute Summary collapse
-
#colspan ⇒ Object
readonly
Returns the value of attribute colspan.
-
#cs ⇒ Object
Returns the value of attribute cs.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#rowspan ⇒ Object
readonly
Returns the value of attribute rowspan.
-
#rs ⇒ Object
Returns the value of attribute rs.
Attributes inherited from HtmlElem
#array, #attrs, #children, #name, #tag
Instance Method Summary collapse
-
#initialize(tag, ah) ⇒ TableCell
constructor
A new instance of TableCell.
Methods inherited from HtmlElem
#append, #extract, #find, #has?, #inspect, #print, #readlink, #search
Constructor Details
#initialize(tag, ah) ⇒ TableCell
Returns a new instance of TableCell.
126 127 128 129 130 131 132 |
# File 'lib/webunit/table.rb', line 126 def initialize( tag, ah ) super @colspan = ah['colspan'] @rowspan = ah['rowspan'] @cs = @colspan.to_i || 1 @rs = @rowspan.to_i || 1 end |
Instance Attribute Details
#colspan ⇒ Object (readonly)
Returns the value of attribute colspan.
122 123 124 |
# File 'lib/webunit/table.rb', line 122 def colspan @colspan end |
#cs ⇒ Object
Returns the value of attribute cs.
124 125 126 |
# File 'lib/webunit/table.rb', line 124 def cs @cs end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
122 123 124 |
# File 'lib/webunit/table.rb', line 122 def data @data end |
#rowspan ⇒ Object (readonly)
Returns the value of attribute rowspan.
122 123 124 |
# File 'lib/webunit/table.rb', line 122 def rowspan @rowspan end |
#rs ⇒ Object
Returns the value of attribute rs.
124 125 126 |
# File 'lib/webunit/table.rb', line 124 def rs @rs end |