Class: Polaris::Card::SubsectionComponent
- Inherits:
-
Polaris::Component
- Object
- Polaris::Component
- Polaris::Card::SubsectionComponent
- Defined in:
- app/components/polaris/card/section_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**system_arguments) ⇒ SubsectionComponent
constructor
A new instance of SubsectionComponent.
Constructor Details
#initialize(**system_arguments) ⇒ SubsectionComponent
Returns a new instance of SubsectionComponent.
32 33 34 35 36 37 38 39 |
# File 'app/components/polaris/card/section_component.rb', line 32 def initialize(**system_arguments) @system_arguments = system_arguments @system_arguments[:tag] = :div @system_arguments[:classes] = class_names( @system_arguments[:classes], "Polaris-LegacyCard__Subsection" ) end |
Instance Method Details
#call ⇒ Object
41 42 43 |
# File 'app/components/polaris/card/section_component.rb', line 41 def call render(Polaris::BaseComponent.new(**@system_arguments)) { content } end |