Class: Spina::Hooks::HookComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Spina::Hooks::HookComponent
- Defined in:
- app/components/spina/hooks/hook_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(partial:) ⇒ HookComponent
constructor
A new instance of HookComponent.
- #plugins ⇒ Object
Constructor Details
#initialize(partial:) ⇒ HookComponent
Returns a new instance of HookComponent.
4 5 6 |
# File 'app/components/spina/hooks/hook_component.rb', line 4 def initialize(partial:) @partial = partial end |
Instance Method Details
#call ⇒ Object
8 9 10 |
# File 'app/components/spina/hooks/hook_component.rb', line 8 def call render Spina::Hooks::PartialComponent.with_collection(plugins, partial: @partial) end |