Class: ObjectView::Nav
Instance Attribute Summary
Attributes inherited from Element
#acceptable_children, #children, #single_line, #tag
Instance Method Summary collapse
-
#initialize(content = nil) ⇒ Nav
constructor
A new instance of Nav.
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(content = nil) ⇒ Nav
Returns a new instance of Nav.
4 5 6 7 8 9 10 |
# File 'lib/object_view/nav.rb', line 4 def initialize(content = nil) super() @tag = "nav" if (content != nil) self.add content end end |