Class: JetUi::Accordion::BodyComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- JetUi::Accordion::BodyComponent
- Defined in:
- app/components/jet_ui/accordion/body_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**options) ⇒ BodyComponent
constructor
A new instance of BodyComponent.
Constructor Details
#initialize(**options) ⇒ BodyComponent
Returns a new instance of BodyComponent.
6 7 8 |
# File 'app/components/jet_ui/accordion/body_component.rb', line 6 def initialize(**) @options = end |
Instance Method Details
#call ⇒ Object
10 11 12 |
# File 'app/components/jet_ui/accordion/body_component.rb', line 10 def call content_tag :div, content, class: classes, **@options.except(:class) end |