Class: Arbo::Component
- Inherits:
-
HTML::Div
- Object
- HTML::Div
- Arbo::Component
- Defined in:
- lib/arbo/component.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize ⇒ Component
constructor
A new instance of Component.
-
#tag_name ⇒ Object
By default components render a div.
Constructor Details
#initialize ⇒ Component
Returns a new instance of Component.
9 10 11 12 |
# File 'lib/arbo/component.rb', line 9 def initialize(*) super add_class default_class_name end |
Instance Method Details
#tag_name ⇒ Object
By default components render a div
5 6 7 |
# File 'lib/arbo/component.rb', line 5 def tag_name 'div' end |