Class: Html::Thead
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(row = Row.new(Array.new(0)), **attrs) ⇒ Thead
constructor
A new instance of Thead.
Methods inherited from Tag
Constructor Details
#initialize(row = Row.new(Array.new(0)), **attrs) ⇒ Thead
5 6 7 8 9 |
# File 'lib/html/thead.rb', line 5 def initialize(row = Row.new(Array.new(0)), **attrs) super(**attrs) @row = row end |
Instance Method Details
#empty? ⇒ Boolean
11 12 13 |
# File 'lib/html/thead.rb', line 11 def empty? @row.nil? || @row.cols.empty? end |