Class: Dsu::Views::EntryGroup::List
- Inherits:
-
Object
- Object
- Dsu::Views::EntryGroup::List
- Defined in:
- lib/dsu/views/entry_group/list.rb
Instance Method Summary collapse
-
#initialize(presenter:) ⇒ List
constructor
A new instance of List.
- #render ⇒ Object
Constructor Details
#initialize(presenter:) ⇒ List
Returns a new instance of List.
7 8 9 |
# File 'lib/dsu/views/entry_group/list.rb', line 7 def initialize(presenter:) @presenter = presenter end |
Instance Method Details
#render ⇒ Object
11 12 13 14 15 |
# File 'lib/dsu/views/entry_group/list.rb', line 11 def render return presenter. if presenter.nothing_to_list? presenter.render end |