Class: ObjectView::TBody

Inherits:
Element
  • Object
show all
Defined in:
lib/object_view/table.rb

Instance Attribute Summary

Attributes inherited from Element

#acceptable_children, #children, #single_line, #tag

Instance Method Summary collapse

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

#initializeTBody

Returns a new instance of TBody.



62
63
64
65
66
# File 'lib/object_view/table.rb', line 62

def initialize
  super()
  @tag = "tbody"
  self.acceptable_children = [TRow]
end

Instance Method Details

#rowObject



68
69
70
71
72
# File 'lib/object_view/table.rb', line 68

def row
  @row = TRow.new
  self.add(@row)
  return @row
end