Class: ObjectView::Li

Inherits:
Element show all
Defined in:
lib/object_view/ul.rb

Instance Attribute Summary

Attributes inherited from Element

#acceptable_children, #attributes, #children, #single_line, #tag

Instance Method Summary collapse

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(content = nil) ⇒ Li

Returns a new instance of Li.



21
22
23
24
25
26
27
# File 'lib/object_view/ul.rb', line 21

def initialize(content = nil)
  super()
  @tag = "li"
  if (content != nil)
    self.add content
  end
end