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