Class: ObjectView::Title
- Defined in:
- lib/object_view/head.rb
Instance Attribute Summary
Attributes inherited from Element
#acceptable_children, #children, #single_line, #tag
Instance Method Summary collapse
-
#initialize(title) ⇒ Title
constructor
A new instance of Title.
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(title) ⇒ Title
Returns a new instance of Title.
35 36 37 38 39 40 |
# File 'lib/object_view/head.rb', line 35 def initialize(title) super() @tag = "title" self.acceptable_children = [String] self.add title if (title) end |