Class: UI::PComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::PComponent
- Defined in:
- app/view_components/ui/p_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: nil, **attributes) ⇒ PComponent
constructor
A new instance of PComponent.
Constructor Details
#initialize(classes: nil, **attributes) ⇒ PComponent
Returns a new instance of PComponent.
5 6 7 8 |
# File 'app/view_components/ui/p_component.rb', line 5 def initialize(classes: nil, **attributes) @classes = classes @attributes = attributes end |