Class: Voom::Presenters::ContainerItem
- Inherits:
-
Object
- Object
- Voom::Presenters::ContainerItem
- Defined in:
- lib/voom/presenters/container_item.rb
Overview
Presenters are registered in the container with this class You can replace this using the presenter container_item setting
Instance Method Summary collapse
-
#call ⇒ Object
Resolves the ui to an instance that can be rendered.
-
#initialize(ui:) ⇒ ContainerItem
constructor
A new instance of ContainerItem.
Constructor Details
#initialize(ui:) ⇒ ContainerItem
Returns a new instance of ContainerItem.
6 7 8 |
# File 'lib/voom/presenters/container_item.rb', line 6 def initialize(ui:) @ui = ui end |
Instance Method Details
#call ⇒ Object
Resolves the ui to an instance that can be rendered
11 12 13 |
# File 'lib/voom/presenters/container_item.rb', line 11 def call @ui end |