Class: Ragdoll::DocumentListComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Ragdoll::DocumentListComponent
- Defined in:
- app/components/ragdoll/document_list_component.rb
Instance Method Summary collapse
-
#initialize(documents:) ⇒ DocumentListComponent
constructor
A new instance of DocumentListComponent.
Constructor Details
#initialize(documents:) ⇒ DocumentListComponent
Returns a new instance of DocumentListComponent.
5 6 7 |
# File 'app/components/ragdoll/document_list_component.rb', line 5 def initialize(documents:) @documents = documents end |