Class: Arbre::Component

Inherits:
HTML::Div
  • Object
show all
Defined in:
lib/arbre/component.rb

Direct Known Subclasses

Rails::Forms::FormBuilderProxy

Instance Method Summary collapse

Constructor Details

#initializeComponent

Returns a new instance of Component.


9
10
11
12
# File 'lib/arbre/component.rb', line 9

def initialize(*)
  super
  add_class default_class_name
end

Instance Method Details

#tag_nameObject

By default components render a div


5
6
7
# File 'lib/arbre/component.rb', line 5

def tag_name
  'div'
end