Class: ObjectView::THead
- Defined in:
- lib/object_view/table.rb
Instance Attribute Summary
Attributes inherited from Element
#acceptable_children, #children, #single_line, #tag
Instance Method Summary collapse
-
#initialize ⇒ THead
constructor
A new instance of THead.
- #row ⇒ Object
Methods inherited from Element
#<<, #add, #add_with_tag, #attr, #attributes, #css_class=, #find_element_with_tag, #id=, #is_acceptable_child?, #on_click=, #render, #render_attributes, #render_children, #style, #style=
Constructor Details
#initialize ⇒ THead
Returns a new instance of THead.
46 47 48 49 50 51 |
# File 'lib/object_view/table.rb', line 46 def initialize super() self.single_line = true @tag = "thead" self.acceptable_children = [TRow] end |
Instance Method Details
#row ⇒ Object
53 54 55 56 57 |
# File 'lib/object_view/table.rb', line 53 def row @row = THeadRow.new self.add(@row) return @row end |