Class: ObjectView::Head
Instance Attribute Summary
Attributes inherited from Element
#acceptable_children, #attributes, #children, #single_line, #tag
Instance Method Summary collapse
-
#initialize ⇒ Head
constructor
A new instance of Head.
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 ⇒ Head
Returns a new instance of Head.
10 11 12 13 14 |
# File 'lib/object_view/head.rb', line 10 def initialize super @tag = "head" self.acceptable_children = [Javascript, JavascriptFile, Link] end |