Class: HTML::Thead
- Inherits:
-
Struct
- Object
- Struct
- HTML::Thead
- Defined in:
- lib/html/table.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
13 14 15 |
# File 'lib/html/table.rb', line 13 def data @data end |
Instance Method Details
#to_html ⇒ Object
14 15 16 17 18 19 |
# File 'lib/html/table.rb', line 14 def to_html return "" unless data && data.respond_to?(:columns) Builder.build(data.columns) do |cols| tag(:thead, tr(cols)) end end |