Class: ObjectView::TBody
Instance Attribute Summary
Attributes inherited from Element
#acceptable_children, #attributes, #children, #single_line, #tag
Instance Method Summary collapse
-
#initialize ⇒ TBody
constructor
A new instance of TBody.
- #row ⇒ Object
Methods inherited from Element
#<<, #add, #add_with_tag, #attr, #css_class=, #find_element_with_tag, #id=, #is_acceptable_child?, #on_click=, #render, #render_attributes, #render_children, #style=
Constructor Details
#initialize ⇒ TBody
Returns a new instance of TBody.
60 61 62 63 64 |
# File 'lib/object_view/table.rb', line 60 def initialize super() @tag = "tbody" self.acceptable_children = [TRow] end |
Instance Method Details
#row ⇒ Object
66 67 68 69 70 |
# File 'lib/object_view/table.rb', line 66 def row @row = TRow.new self.add(@row) return @row end |