Class: Tr3llo::Presenter::List::CardsPresenter
- Inherits:
-
Object
- Object
- Tr3llo::Presenter::List::CardsPresenter
- Defined in:
- lib/3llo/presenter/list/cards.rb
Instance Method Summary collapse
-
#initialize(interface) ⇒ CardsPresenter
constructor
A new instance of CardsPresenter.
- #print!(cards) ⇒ Object
Constructor Details
#initialize(interface) ⇒ CardsPresenter
Returns a new instance of CardsPresenter.
5 6 7 |
# File 'lib/3llo/presenter/list/cards.rb', line 5 def initialize(interface) @interface = interface end |
Instance Method Details
#print!(cards) ⇒ Object
9 10 11 12 13 |
# File 'lib/3llo/presenter/list/cards.rb', line 9 def print!(cards) interface.print_frame do cards.each { |card| present_card(card) } end end |